Questions tagged [syntaxerror]
The syntaxerror tag has no usage guidance.
6
questions with no upvoted or accepted answers
0
votes
0
answers
171
views
RuntimeError: near ",": syntax error
I'm struggling with my final project. I try to query database for income items ( in "income" table) to sum them up finally, but each time I get the syntax error. The funny thing is that it ...
0
votes
1
answer
60
views
CS50 2018 Lecture 1C. Unable to figure out syntax error in code
My code :
#include <stdio.h>
#include <cs50.h>
int get_positive_int(string prompt);
int main(void)
{
int i = get_positive_int("Positive interegr: ");
printf("%i\n", i);
}
int ...
0
votes
1
answer
289
views
cs50 pset 1 greedy algorithm
#include <cs50.h>
#include <stdio.h>
#include <math.h>
int main(void)
{
float y;
do
{
y = get_float("Change: ");
}
while (y < 0);
printf("%f\n", y * 100);
...
0
votes
1
answer
307
views
pset 7 survey: trying to redirect to /sheet returns invalid syntax error
For part of CS50's survey problem from pset7, I'm supposed to redirect from a route that checks if the user has entered in all the survey's fields / appends the values to a csv file --> a route that ...
0
votes
1
answer
232
views
Syntax error: newline unexpected
I'm still working on the cs50 application (it's still 2015 right?) and got a problem with pset6.
Basically I am getting a Syntax Error:
/path/to/hello.html: 2: /path/to/hello.html: Syntax error: ...
0
votes
1
answer
335
views
Error: function definition is not allow here What error is this?
main.c:10:24: error: function definition is not allowed here
int read( int a[9][9]){
^
main.c:36:24: error: function definition is not allowed here
void show(int a[9][9]){
^
main.c:58:24: error: ...