Borderou de evaluare (job #1210603)

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

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:36:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=] { scanf("%d",&v[i][j]); ^ user.cpp:53:24: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] printf("%ld\n",smin); ^ user.cpp:33: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:33: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:34: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:36: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
10ms312kbIncorect0
228ms316kbOK10
30ms312kbIncorect0
40ms312kbOK10
50ms312kbIncorect0
60ms312kbIncorect0
724ms312kbIncorect0
836ms316kbIncorect0
9Depăşit296kbTime limit exceeded.0
10104ms320kbOK10
Punctaj total30

Ceva nu functioneaza?