Borderou de evaluare (job #1263117)

Utilizator smaraldaSmaranda Dinu smaralda Data 13 noiembrie 2014 22:56:38
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:39:36: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=] scanf("%d", &grid[i][j]); ^ user.cpp:43:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=] scanf("%d", &nSteps[i]); ^ 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:36:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:39: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:43:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &nSteps[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms292kbOKAY!10
20ms292kbOKAY!10
30ms300kbOKAY!10
40ms308kbOKAY!10
50ms316kbOKAY!10
60ms328kbOKAY!10
70ms328kbOKAY!10
80ms336kbOKAY!10
920msDepăşitMemory limit exceeded.0
100ms288kbOKAY!10
Punctaj total90

Ceva nu functioneaza?