Pagini recente » Borderou de evaluare (job #1057155) | Borderou de evaluare (job #1333877) | Borderou de evaluare (job #1427939) | Borderou de evaluare (job #1893055) | Borderou de evaluare (job #1992970)
Borderou de evaluare (job #1992970)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:56:36: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=]
fscanf(f1,"%d",&c[i][j]);
^
user.cpp:76:31: warning: array subscript has type ‘char’ [-Wchar-subscripts]
X = p.x + dirX[dir];
^
user.cpp:77:31: warning: array subscript has type ‘char’ [-Wchar-subscripts]
Y = p.y + dirY[dir];
^
user.cpp:78:20: warning: array subscript has type ‘char’ [-Wchar-subscripts]
C = c[X][Y] + d[p.x][p.y];
^
user.cpp:78:23: warning: array subscript has type ‘char’ [-Wchar-subscripts]
C = c[X][Y] + d[p.x][p.y];
^
user.cpp:78:32: warning: array subscript has type ‘char’ [-Wchar-subscripts]
C = c[X][Y] + d[p.x][p.y];
^
user.cpp:78:37: warning: array subscript has type ‘char’ [-Wchar-subscripts]
C = c[X][Y] + d[p.x][p.y];
^
user.cpp:81:19: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(c[X][Y] != MAX && C < d[X][Y] && C <= s)
^
user.cpp:81:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(c[X][Y] != MAX && C < d[X][Y] && C <= s)
^
user.cpp:81:41: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(c[X][Y] != MAX && C < d[X][Y] && C <= s)
^
user.cpp:81:44: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(c[X][Y] != MAX && C < d[X][Y] && C <= s)
^
user.cpp:88:20: warning: array subscript has type ‘char’ [-Wchar-subscripts]
d[X][Y] = C;
^
user.cpp:88:23: warning: array subscript has type ‘char’ [-Wchar-subscripts]
d[X][Y] = C;
^
user.cpp:53:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f1,"%d%d",&s,&n);
^
user.cpp:56:37: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f1,"%d",&c[i][j]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 284kb | OK | 10 |
2 | 0ms | 288kb | OK | 10 |
3 | 0ms | 280kb | OK | 10 |
4 | 0ms | 288kb | OK | 10 |
5 | 0ms | 284kb | OK | 10 |
6 | 0ms | 284kb | OK | 10 |
7 | 0ms | 328kb | Incorect | 0 |
8 | 0ms | 328kb | OK | 10 |
9 | 4ms | 348kb | Incorect | 0 |
10 | 4ms | 344kb | Incorect | 0 |
Punctaj total | 70 |