Borderou de evaluare (job #1210605)

Utilizator enedumitruene dumitru enedumitru Data 20 iulie 2014 16:15:07
Problema Suma3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In function ‘void back(char, char, int)’: user.cpp:17:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] { x[k]=v[l][c]; v[l][c]=0; ^ user.cpp:17:16: warning: array subscript has type ‘char’ [-Wchar-subscripts] { x[k]=v[l][c]; v[l][c]=0; ^ user.cpp:17:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] { x[k]=v[l][c]; v[l][c]=0; ^ user.cpp:17:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] { x[k]=v[l][c]; v[l][c]=0; ^ user.cpp:18:23: warning: array subscript has type ‘char’ [-Wchar-subscripts] s[k]=s[k-1]+p[k][x[k]]; ^ user.cpp:25:23: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(v[L[i][r].first][L[i][r].second]) back(L[i][r].first,L[i][r].second,k+1); ^ user.cpp:25:39: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(v[L[i][r].first][L[i][r].second]) back(L[i][r].first,L[i][r].second,k+1); ^ user.cpp:29:8: warning: array subscript has type ‘char’ [-Wchar-subscripts] v[l][c]=x[k]; ^ user.cpp:29:11: warning: array subscript has type ‘char’ [-Wchar-subscripts] v[l][c]=x[k]; ^ user.cpp: In function ‘int main()’: user.cpp:38:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=] { scanf("%d",&v[i][j]); ^ user.cpp:54:24: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] printf("%ld\n",smin); ^ user.cpp:35:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("suma3.in","r",stdin); freopen("suma3.out","w",stdout); ^ user.cpp:35:67: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("suma3.in","r",stdin); freopen("suma3.out","w",stdout); ^ user.cpp:36:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&a,&b); ^ user.cpp:38:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] { scanf("%d",&v[i][j]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms304kbOK10
264ms312kbOK10
30ms304kbOK10
40ms308kbOK10
50ms304kbOK10
60ms304kbOK10
752ms308kbOK10
892ms308kbOK10
9Depăşit284kbTime limit exceeded.0
10Depăşit280kbTime limit exceeded.0
Punctaj total80

Ceva nu functioneaza?