Borderou de evaluare (job #1262772)

Utilizator depevladVlad Dumitru-Popescu depevlad Data 13 noiembrie 2014 15:48:41
Problema Sudest Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:33:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=] scanf("%d", &A[i][j]); ^ user.cpp:54:37: warning: array subscript has type ‘char’ [-Wchar-subscripts] nexts.S += A[nexts.X][nexts.Y]; ^ user.cpp:54:46: warning: array subscript has type ‘char’ [-Wchar-subscripts] nexts.S += A[nexts.X][nexts.Y]; ^ user.cpp:64:37: warning: array subscript has type ‘char’ [-Wchar-subscripts] nexts.S += A[nexts.X][nexts.Y]; ^ user.cpp:64:46: warning: array subscript has type ‘char’ [-Wchar-subscripts] nexts.S += A[nexts.X][nexts.Y]; ^ user.cpp:25: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:26: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:30:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:33:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &A[i][j]); ^ user.cpp:34:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &k); ^ user.cpp:43:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &cost); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
18msDepăşitMemory limit exceeded.0
24msDepăşitMemory limit exceeded.0
34msDepăşitMemory limit exceeded.0
44msDepăşitMemory limit exceeded.0
50msDepăşitMemory limit exceeded.0
64msDepăşitMemory limit exceeded.0
74msDepăşitMemory limit exceeded.0
84msDepăşitMemory limit exceeded.0
94msDepăşitMemory limit exceeded.0
100ms292kbOKAY!10
Punctaj total10

Ceva nu functioneaza?