Borderou de evaluare (job #1992970)

Utilizator Marius7122FMI Ciltea Marian Marius7122 Data 22 iunie 2017 00:30:47
Problema Taxe2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 70

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
10ms284kbOK10
20ms288kbOK10
30ms280kbOK10
40ms288kbOK10
50ms284kbOK10
60ms284kbOK10
70ms328kbIncorect0
80ms328kbOK10
94ms348kbIncorect0
104ms344kbIncorect0
Punctaj total70

Ceva nu functioneaza?