Borderou de evaluare (job #2161753)

Utilizator pepsiM4A1Ozturk Arif pepsiM4A1 Data 11 martie 2018 20:38:44
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
14ms2336kbOK!00
24ms2368kbOK!00
34ms2364kbOK!00
44ms2296kbOK!00
54ms2324kbOK!33
64ms2296kbRaspuns gresit!00
74ms2320kbOK!22
84ms2292kbRaspuns gresit!00
94ms2348kbOK!33
104ms2296kbOK!33
114ms2348kbOK!44
124ms2324kbRaspuns gresit!00
134ms2480kbRaspuns gresit!0
144ms2264kbRaspuns gresit!0
154ms2428kbRaspuns gresit!0
164ms2476kbOK!5
174ms2400kbRaspuns gresit!0
184ms2428kbOK!50
194ms2448kbRaspuns gresit!0
204ms2428kbRaspuns gresit!0
Punctaj total15

Ceva nu functioneaza?