Borderou de evaluare (job #1677894)

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

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: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
20ms264kbOK5
348ms552kbOK5
496ms848kbOK5
5212ms1428kbOK5
6Depăşit2576kbTime limit exceeded.0
70ms248kbOK5
80ms256kbOK5
90ms260kbOK5
104ms276kbOK5
118ms308kbOK5
1220ms364kbOK5
1344ms484kbOK5
1492ms716kbOK5
15116ms836kbOK5
16176ms1124kbOK5
17248ms1416kbOK5
18Depăşit1712kbTime limit exceeded.0
19Depăşit2108kbTime limit exceeded.0
20Depăşit2580kbTime limit exceeded.0
Punctaj total80

Ceva nu functioneaza?