Borderou de evaluare (job #2161755)

Utilizator pepsiM4A1Ozturk Arif pepsiM4A1 Data 11 martie 2018 20:39:06
Problema Smooth2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 15

Raport evaluator

Compilare: user.cpp: In function ‘int solve_first()’: user.cpp:19:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(ap[ch[j]]!=0) ++bad; ^ user.cpp:20:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] ap[ch[j]]=1; ^ user.cpp:22:49: warning: array subscript has type ‘char’ [-Wchar-subscripts] for(int j=i;j<min(i+per,n);j++) ap[ch[j]]=0; ^ user.cpp: In function ‘int solve_second(char)’: user.cpp:36:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(ap[ch[j]]!=0) ++bad; ^ user.cpp:37:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] ap[ch[j]]=1; ^ user.cpp:39:49: warning: array subscript has type ‘char’ [-Wchar-subscripts] for(int j=i;j<min(n,i+per);j++) ap[ch[j]]=0; ^ user.cpp: In function ‘int main()’: user.cpp:51:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(ap2[ch[i]]==0) dif.pb(ch[i]); ^ user.cpp:52:18: warning: array subscript has type ‘char’ [-Wchar-subscripts] ap2[ch[i]]=1; ^ user.cpp:55:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<dif.size();i++) ^ user.cpp:45:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("smooth2.in","r",stdin); ^ user.cpp:46:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("smooth2.out","w",stdout); ^ user.cpp:47:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s",ch); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
14ms2352kbOK!00
24ms2328kbOK!00
34ms2328kbOK!00
44ms2368kbOK!00
54ms2340kbOK!33
64ms2368kbRaspuns gresit!00
74ms2292kbOK!22
84ms2432kbRaspuns gresit!00
94ms2352kbOK!33
104ms2324kbOK!33
114ms2336kbOK!44
124ms2340kbOK!50
1324ms2420kbRaspuns gresit!0
144ms2288kbOK!5
1528ms2428kbRaspuns gresit!0
1632ms2348kbOK!5
1728ms2360kbRaspuns gresit!0
1832ms2424kbOK!50
1920ms2452kbRaspuns gresit!0
2020ms2412kbRaspuns gresit!0
Punctaj total15

Ceva nu functioneaza?