Borderou de evaluare (job #2160107)

Utilizator pepsiM4A1Ozturk Arif pepsiM4A1 Data 11 martie 2018 11:43:40
Problema Smooth2 Status done
Runda Algoritmiada 2018 Runda PreOJI 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:42: warning: array subscript has type ‘char’ [-Wchar-subscripts] for(int j=i;j<i+per;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); ^
Feedback Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
✓14ms2296kbOK!00
✓24ms2340kbOK!00
✓34ms2372kbOK!00
✓44ms2432kbOK!00
✗54ms2432kbOK!33
✗64ms2336kbRaspuns gresit!00
✗74ms2388kbOK!22
✗84ms2308kbRaspuns gresit!00
✗94ms2376kbOK!33
✗104ms2336kbOK!33
✗114ms2384kbOK!44
✗124ms2352kbOK!50
✗1324ms2428kbRaspuns gresit!0
✗144ms2340kbOK!5
✗154ms2072kbKilled by signal 11(SIGSEGV).0
✗1632ms2436kbOK!5
✗174ms2056kbKilled by signal 11(SIGSEGV).0
✗184ms2156kbKilled by signal 11(SIGSEGV).00
✗1920ms2440kbRaspuns gresit!0
✗2020ms2412kbRaspuns gresit!0
Punctaj total15

Ceva nu functioneaza?