1

When I execute: submit50 cs50/problems/2020/x/movies

All my SQL files are sent for grading and all come back with the same error: Error when executing query: missing statement

Check 50 output

I have tried the sql with and without the ";" at the end of the line. All files are one line and all execute in sqlite3 terminal.

1.sql example:
SELECT title FROM movies WHERE year = 2008;

Not sure if this is related but I am not getting any response from entering the cat command.

~/ $ cd pset7/movies
~/pset7/movies/ $ cat 1.sql | sqlite3 movies.db
~/pset7/movies/ $

Any help on resolving what is preventing the grading would be appreciated.

1 Answer 1

0

Simple solution: line up the files in the right subdirectory.

I copied files from local machine to /pset7 rather than /pset7/movies

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .