Borderou de evaluare (job #1677905)

Utilizator CrystyAngelDinu Cristian CrystyAngel Data 6 aprilie 2016 21:12:50
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
10ms268kbOK5
20ms272kbOK5
344ms560kbOK5
4100ms852kbOK5
5208ms1440kbOK5
6Depăşit2580kbTime limit exceeded.0
70ms252kbOK5
80ms264kbOK5
90ms272kbOK5
104ms284kbOK5
118ms320kbOK5
1220ms372kbOK5
1344ms492kbOK5
1496ms724kbOK5
15116ms844kbOK5
16180ms1136kbOK5
17248ms1424kbOK5
18Depăşit1716kbTime limit exceeded.0
19Depăşit2116kbTime limit exceeded.0
20Depăşit2580kbTime limit exceeded.0
Punctaj total80

Ceva nu functioneaza?