Borderou de evaluare (job #1992974)

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

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: 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
10ms280kbOK10
20ms284kbOK10
30ms284kbOK10
40ms296kbOK10
50ms292kbOK10
60ms288kbOK10
70ms356kbOK10
80ms360kbOK10
94ms384kbIncorect0
104ms384kbIncorect0
Punctaj total80

Ceva nu functioneaza?