Borderou de evaluare (job #1207889)

Utilizator atatomirTatomir Alex atatomir Data 14 iulie 2014 11:14:03
Problema Heroes of Might & Magic Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void Renew(char)’: user.cpp:20:16: warning: array subscript has type ‘char’ [-Wchar-subscripts] a[v][i][j] = 0; ^ user.cpp: In function ‘void Expand(char, char)’: user.cpp:24:18: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (ok[x-1][y] == 0) { cont++; c[cont].x = x-1; c[cont].y = y; ok[x-1][y] = 1;} ^ user.cpp:24:77: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (ok[x-1][y] == 0) { cont++; c[cont].x = x-1; c[cont].y = y; ok[x-1][y] = 1;} ^ user.cpp:25:18: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (ok[x+1][y] == 0) { cont++; c[cont].x = x+1; c[cont].y = y; ok[x+1][y] = 1;} ^ user.cpp:25:77: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (ok[x+1][y] == 0) { cont++; c[cont].x = x+1; c[cont].y = y; ok[x+1][y] = 1;} ^ user.cpp:26:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (ok[x][y-1] == 0) { cont++; c[cont].x = x; c[cont].y = y-1; ok[x][y-1] = 1;} ^ user.cpp:26:72: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (ok[x][y-1] == 0) { cont++; c[cont].x = x; c[cont].y = y-1; ok[x][y-1] = 1;} ^ user.cpp:27:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (ok[x][y+1] == 0) { cont++; c[cont].x = x; c[cont].y = y+1; ok[x][y+1] = 1;} ^ user.cpp:27:72: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (ok[x][y+1] == 0) { cont++; c[cont].x = x; c[cont].y = y+1; ok[x][y+1] = 1;} ^ user.cpp: In function ‘int main()’: user.cpp:35:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d %d %d\n",&n,&m,&k); ^ user.cpp:35:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:35:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:48:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d %d %d %d",&x1,&y1,&x2,&y2); ^ user.cpp:48:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:48:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:48:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘long int*’ [-Wformat=] user.cpp:52:8: warning: array subscript has type ‘char’ [-Wchar-subscripts] a[s][x1][y1] = 1; cont++; c[cont].x = x1; c[cont].y = y1; ok[x1][y1] = 1; ^ user.cpp:55:16: warning: array subscript has type ‘char’ [-Wchar-subscripts] total = a[s][x2][y2]; ^ user.cpp:62:16: warning: array subscript has type ‘char’ [-Wchar-subscripts] a[d][xl][yl] = a[s][xl-1][yl] + a[s][xl+1][yl] + a[s][xl][yl-1] + a[s][xl][yl+1]; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms300kbOK10
20ms304kbOK10
30ms300kbOK10
40ms292kbOK10
50ms308kbOK10
60ms300kbOK10
70ms304kbOK10
80ms360kbOK10
90ms328kbOK10
100ms336kbOK10
Punctaj total100

Ceva nu functioneaza?