Pagini recente » Borderou de evaluare (job #496974) | Borderou de evaluare (job #707699) | Borderou de evaluare (job #427186) | Borderou de evaluare (job #1309996) | Borderou de evaluare (job #1207889)
Borderou de evaluare (job #1207889)
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 |
1 | 0ms | 300kb | OK | 10 |
2 | 0ms | 304kb | OK | 10 |
3 | 0ms | 300kb | OK | 10 |
4 | 0ms | 292kb | OK | 10 |
5 | 0ms | 308kb | OK | 10 |
6 | 0ms | 300kb | OK | 10 |
7 | 0ms | 304kb | OK | 10 |
8 | 0ms | 360kb | OK | 10 |
9 | 0ms | 328kb | OK | 10 |
10 | 0ms | 336kb | OK | 10 |
Punctaj total | 100 |