Borderou de evaluare (job #1910657)

Utilizator PopoviciRobertPopovici Robert PopoviciRobert Data 7 martie 2017 17:48:54
Problema Bignumber Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 5

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:60:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] vf[str[pos[i]]]++; ^ user.cpp:66:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(vf[str[i]]==0){ ^ user.cpp:68:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] newpos[str[m]].push_back(m); ^ user.cpp:69:29: warning: array subscript has type ‘char’ [-Wchar-subscripts] ind[m]=newpos[str[m]].size()-1; ^ user.cpp:72:18: warning: array subscript has type ‘char’ [-Wchar-subscripts] vf[str[i]]--; ^ user.cpp:75:54: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(cif>str[i]&&(poz[cif]>=newpos[cif].size()||(poz[cif]<newpos[cif].size()&&newpos[cif][poz[cif]]-i>x))) ^ user.cpp:75:84: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(cif>str[i]&&(poz[cif]>=newpos[cif].size()||(poz[cif]<newpos[cif].size()&&newpos[cif][poz[cif]]-i>x))) ^ user.cpp:80:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] newpos[str[j-1]][ind[j-1]]++; ^ user.cpp:81:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] newpos[str[j]][ind[j]]--; ^ user.cpp:39:23: warning: unused variable ‘l’ [-Wunused-variable] int i,x,n,rez,pas,l,m,p,cif,j,aux; ^ user.cpp:43:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fi,"%d %d " ,&n,&x); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
18ms4324kbIncorect0
28ms4340kbIncorect0
38ms4324kbIncorect0
48ms4328kbIncorect0
520ms4400kbIncorect0
612ms4356kbOK5
7420ms5144kbIncorect0
8Depăşit5228kbTime limit exceeded.0
9Depăşit5292kbTime limit exceeded.0
10Depăşit5356kbTime limit exceeded.0
11Depăşit5684kbTime limit exceeded.0
12Depăşit6020kbTime limit exceeded.0
13Depăşit7616kbTime limit exceeded.0
14Depăşit9140kbTime limit exceeded.0
15Depăşit10676kbTime limit exceeded.0
16Depăşit12396kbTime limit exceeded.0
17Depăşit10160kbTime limit exceeded.0
18Depăşit10160kbTime limit exceeded.0
19Depăşit10304kbTime limit exceeded.0
20Depăşit10300kbTime limit exceeded.0
Punctaj total5

Ceva nu functioneaza?