Borderou de evaluare (job #1868438)

Utilizator antanaAntonia Boca antana Data 4 februarie 2017 22:15:02
Problema Taxe2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:50:86: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(son.x >= 1 && son.x <= n && son.y >=1 && son.y <= n && !seen[son.x][son.y]) ^ user.cpp:50:93: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(son.x >= 1 && son.x <= n && son.y >=1 && son.y <= n && !seen[son.x][son.y]) ^ user.cpp:52:31: warning: array subscript has type ‘char’ [-Wchar-subscripts] seen[son.x][son.y] = 1; ^ user.cpp:52:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] seen[son.x][son.y] = 1; ^ user.cpp:53:42: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(dist + value[son.x][son.y] <= S) ^ user.cpp:53:49: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(dist + value[son.x][son.y] <= S) ^ user.cpp:54:45: warning: array subscript has type ‘char’ [-Wchar-subscripts] Q[dist + value[son.x][son.y]].push_back({son.x, son.y}); ^ user.cpp:54:52: warning: array subscript has type ‘char’ [-Wchar-subscripts] Q[dist + value[son.x][son.y]].push_back({son.x, son.y}); ^ user.cpp:58:60: warning: array subscript has type ‘char’ [-Wchar-subscripts] printf("%d", S - dist - value[son.x][son.y]); ^ user.cpp:58:67: warning: array subscript has type ‘char’ [-Wchar-subscripts] printf("%d", S - dist - value[son.x][son.y]); ^ user.cpp:24:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("taxe2.in", "r", stdin); ^ user.cpp:25:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("taxe2.out", "w", stdout); ^ user.cpp:29:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &S, &n); ^ user.cpp:33:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &value[i][j]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms388kbOK10
20ms380kbOK10
30ms392kbOK10
40ms396kbOK10
50ms392kbOK10
60ms376kbOK10
70ms448kbOK10
80ms436kbOK10
94ms488kbOK10
104ms496kbOK10
Punctaj total100

Ceva nu functioneaza?