- If you get a result link, maybe click it to gain further information.
- If it doesn't compile on the server, it might not do so on your computer. It would have been helpful if you had used
make
locally.
Output for make
on my machine indicates you should use get_int
instead of GetInt
:
~/workspace/pset3/fifteen/ $ make
clang -ggdb3 -O0 -std=c11 -Wall -Werror -o fifteen fifteen.c -lcs50 -lm
fifteen.c:107:20: error: 'GetInt' is deprecated [-Werror,-Wdeprecated-declarations]
int tile = GetInt();
^
/usr/include/cs50.h:122:5: note: 'GetInt' has been explicitly marked deprecated here
int GetInt(void) __attribute__((deprecated));
^
1 error generated.
make: *** [fifteen] Error 1
[edit]
Even though you use old code that still uses GetInt
, this should not happen in check50
as the server uses a flag to ignore deprecation warnings in compiling. I just tried to check50
my own code, and it worked even though it contains GetInt
.
Found a seemingly unrelated bug in won
, a possible condition is if(board[i][j] != (j + 1) + (i * d) && board[i][j] != 0)
with one !
removed and &&
instead of ||
.