Borderou de evaluare (job #1615276)

Utilizator ionutpop118Pop Ioan Cristian ionutpop118 Data 26 februarie 2016 14:39:41
Problema Alge Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 70

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:48:60: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (inside(nou.x, nou.y, nou.z, n) && viz[nou.x][nou.y][nou.z] == 0) ^ user.cpp:48:67: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (inside(nou.x, nou.y, nou.z, n) && viz[nou.x][nou.y][nou.z] == 0) ^ user.cpp:48:74: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (inside(nou.x, nou.y, nou.z, n) && viz[nou.x][nou.y][nou.z] == 0) ^ user.cpp:50:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] viz[nou.x][nou.y][nou.z] = 1; ^ user.cpp:50:33: warning: array subscript has type ‘char’ [-Wchar-subscripts] viz[nou.x][nou.y][nou.z] = 1; ^ user.cpp:50:40: warning: array subscript has type ‘char’ [-Wchar-subscripts] viz[nou.x][nou.y][nou.z] = 1; ^ user.cpp:52:41: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses] if (nou.x == n && nou.y == n & nou.z == n) ^ user.cpp:26:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("alge.in", "r", stdin); ^ user.cpp:27:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("alge.out", "w", stdout); ^ user.cpp:31:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%hd %hd", &n, &m); ^ user.cpp:34:41: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%hd %hd %hd", &x, &y, &z); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms300kbOK!1020
20ms292kbOK!10
30ms300kbOK!1020
40ms308kbOK!10
50ms360kbOK!1020
60ms308kbOK!10
70ms360kbOK!1010
80ms412kbOK!100
90ms480kbOK!10
100ms488kbKilled by signal 11(SIGSEGV).0
Punctaj total70

Ceva nu functioneaza?