Borderou de evaluare (job #1263129)

Utilizator smaraldaSmaranda Dinu smaralda Data 13 noiembrie 2014 23:06:52
Problema Sudest Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 90

Raport evaluator

Compilare: user.cpp: In function ‘void print(char, char)’: user.cpp:27:18: warning: array subscript has type ‘char’ [-Wchar-subscripts] print(lasti[x][y], lastj[x][y]); ^ user.cpp:27:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] print(lasti[x][y], lastj[x][y]); ^ user.cpp:27:31: warning: array subscript has type ‘char’ [-Wchar-subscripts] print(lasti[x][y], lastj[x][y]); ^ user.cpp:27:34: warning: array subscript has type ‘char’ [-Wchar-subscripts] print(lasti[x][y], lastj[x][y]); ^ user.cpp: In function ‘int main()’: user.cpp:40:36: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=] scanf("%d", &grid[i][j]); ^ user.cpp:62:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] i = lasti[x[step]][y[step]]; ^ user.cpp:62:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] i = lasti[x[step]][y[step]]; ^ user.cpp:63:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] j = lastj[x[step]][y[step]]; ^ user.cpp:63:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] j = lastj[x[step]][y[step]]; ^ user.cpp:32:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sudest.in", "r", stdin); ^ user.cpp:33:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sudest.out", "w", stdout); ^ user.cpp:37:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:40:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &grid[i][j]); ^ user.cpp:41:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &nMoves); ^ user.cpp:45:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &nSteps); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms292kbOKAY!10
20ms300kbOKAY!10
30ms312kbOKAY!10
40ms312kbOKAY!10
50ms328kbOKAY!10
60ms332kbOKAY!10
70ms340kbOKAY!10
80ms340kbOKAY!10
94ms336kbRaspuns gresit!0
100ms296kbOKAY!10
Punctaj total90

Ceva nu functioneaza?