Borderou de evaluare (job #2161762)

Utilizator pepsiM4A1Ozturk Arif pepsiM4A1 Data 11 martie 2018 20:41:35
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:52:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(ap2[ch[i]]==0) dif.pb(ch[i]); ^ user.cpp:53:18: warning: array subscript has type ‘char’ [-Wchar-subscripts] ap2[ch[i]]++; ^ user.cpp:54:32: warning: array subscript has type ‘char’ [-Wchar-subscripts] sol=min(sol,n-ap2[ch[i]]); ^ user.cpp:57: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
14ms2304kbOK!00
24ms2368kbOK!00
34ms2364kbOK!00
44ms2428kbOK!00
54ms2324kbOK!33
64ms2364kbRaspuns gresit!00
74ms2432kbOK!22
84ms2388kbRaspuns gresit!00
94ms2384kbOK!33
104ms2348kbOK!33
114ms2296kbOK!44
124ms2300kbOK!50
1324ms2420kbRaspuns gresit!0
144ms2308kbOK!5
1528ms2472kbRaspuns gresit!0
1632ms2468kbOK!5
1728ms2468kbRaspuns gresit!0
1832ms2364kbOK!50
1920ms2464kbRaspuns gresit!0
2020ms2384kbRaspuns gresit!0
Punctaj total15

Ceva nu functioneaza?