Borderou de evaluare (job #1677891)

Utilizator CrystyAngelDinu Cristian CrystyAngel Data 6 aprilie 2016 21:04:28
Problema Zimeria Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 25

Raport evaluator

Compilare: user.cpp: In function ‘bool compare(z, z)’: user.cpp:17:20: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(c[a.s[i]][b.s[i]]) ^ user.cpp:17:28: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(c[a.s[i]][b.s[i]]) ^ user.cpp:20:20: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(c[b.s[i]][a.s[i]]) ^ user.cpp:20:28: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(c[b.s[i]][a.s[i]]) ^ user.cpp: In function ‘int main()’: user.cpp:35:20: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[13]’ [-Wformat=] scanf("%s\n",&s); ^ user.cpp:39:23: warning: array subscript has type ‘char’ [-Wchar-subscripts] c[s[i]][s[j]]=1; ^ user.cpp:39:29: warning: array subscript has type ‘char’ [-Wchar-subscripts] c[s[i]][s[j]]=1; ^ user.cpp:41:27: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘z*’ [-Wformat=] scanf("%s\n",&v[i]); ^ user.cpp:45:31: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘z’ [-Wformat=] printf("%s\n",v[i]); ^ user.cpp:32:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("zimeria.in","r",stdin); ^ user.cpp:33:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("zimeria.out","w",stdout); ^ user.cpp:34:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d\n",&p,&n); ^ user.cpp:35:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s\n",&s); ^ user.cpp:41:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s\n",&v[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms264kbOK5
20ms276kbOK5
344ms556kbOK5
4100ms848kbOK5
5208ms1436kbOK5
6Depăşit2584kbTime limit exceeded.0
70ms244kbKilled by signal 11(SIGSEGV).0
80ms256kbKilled by signal 11(SIGSEGV).0
90ms260kbKilled by signal 11(SIGSEGV).0
104ms272kbKilled by signal 11(SIGSEGV).0
118ms312kbKilled by signal 11(SIGSEGV).0
1216ms364kbKilled by signal 11(SIGSEGV).0
1336ms480kbKilled by signal 11(SIGSEGV).0
1476ms716kbKilled by signal 11(SIGSEGV).0
1596ms836kbKilled by signal 11(SIGSEGV).0
16148ms1132kbKilled by signal 11(SIGSEGV).0
17208ms1416kbKilled by signal 11(SIGSEGV).0
18260ms1716kbKilled by signal 11(SIGSEGV).0
19Depăşit2116kbTime limit exceeded.0
20Depăşit2584kbTime limit exceeded.0
Punctaj total25

Ceva nu functioneaza?