Borderou de evaluare (job #1849072)

Utilizator mega_bit8Badita Robert mega_bit8 Data 16 ianuarie 2017 23:12:22
Problema Sokoban Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:73:24: error: cannot convert ‘const char*’ to ‘FILE* {aka _IO_FILE*}’ for argument ‘1’ to ‘int fscanf(FILE*, const char*, ...)’ fscanf("%s\n", &s[0]); ^ user.cpp:130:56: error: invalid conversion from ‘int (*)[2000]’ to ‘int’ [-fpermissive] if (lee(a, sl, sc, l + line[w], c + col[w], step++) && check(l - line[w], c - col[w]) && (a[l - line[w]][c - col[w]] & bit[w]) == 0) ^ user.cpp:130:56: error: too many arguments to function ‘bool lee(int, int, int, int, int)’ user.cpp:22:6: note: declared here bool lee(int sl, int sc, int el, int ec, int step) ^ user.cpp:65:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d\n", &t); ^ user.cpp:69:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d %d\n", &n, &m); ^

Ceva nu functioneaza?