Borderou de evaluare (job #2003415)

Utilizator pepsiM4A1Ozturk Arif pepsiM4A1 Data 22 iulie 2017 21:06:40
Problema Palalila2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:42:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(val[1][ch[i]]<p1+1) ^ user.cpp:44:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] val[1][ch[i]]=p1+1; ^ user.cpp:45:33: warning: array subscript has type ‘char’ [-Wchar-subscripts] sol=max(val[1][ch[i]],sol); ^ user.cpp:51:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(val[0][ch[i]]<p2+1) ^ user.cpp:53:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] val[0][ch[i]]=p2+1; ^ user.cpp:54:33: warning: array subscript has type ‘char’ [-Wchar-subscripts] sol=max(val[0][ch[i]],sol); ^ user.cpp:32:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("palalila2.in","r",stdin); ^ user.cpp:33:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("palalila2.out","w",stdout); ^ user.cpp:34: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
10ms280kbOK10
20ms284kbOK10
30ms280kbOK10
40ms280kbOK10
5Depăşit240kbTime limit exceeded.0
6Depăşit244kbTime limit exceeded.0
70ms248kbKilled by signal 11(SIGSEGV).0
80ms248kbKilled by signal 11(SIGSEGV).0
90ms256kbKilled by signal 11(SIGSEGV).0
100ms252kbKilled by signal 11(SIGSEGV).0
Punctaj total40

Ceva nu functioneaza?