Borderou de evaluare (job #1368975)

Utilizator Mihai22eMihai Ionut Enache Mihai22e Data 2 martie 2015 20:52:42
Problema Zimeria Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 55

Raport evaluator

Compilare: user.cpp: In function ‘bool Word_cmp(Word, Word)’: user.cpp:31:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(val[a.s[i]] < val[b.s[i]]) ^ user.cpp:31:36: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(val[a.s[i]] < val[b.s[i]]) ^ user.cpp:33:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] else if(val[a.s[i]] > val[b.s[i]]) ^ user.cpp:33:41: warning: array subscript has type ‘char’ [-Wchar-subscripts] else if(val[a.s[i]] > val[b.s[i]]) ^ user.cpp: In function ‘int main()’: user.cpp:43:19: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[22]’ [-Wformat=] scanf("%s", &S); ^ user.cpp:45:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] val[S[i]] = i + 1; ^ user.cpp:51:27: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[22]’ [-Wformat=] scanf("%s", &S); ^ user.cpp:55:39: warning: array subscript has type ‘char’ [-Wchar-subscripts] x = (x * 10 + val[S[j]]) % MOD; ^ user.cpp:67:32: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[5]’ [-Wformat=] scanf("%s", &v[i].s); ^ user.cpp:39:38: 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:40:40: 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:42:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &t, &N); ^ user.cpp:43:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", &S); ^ user.cpp:51:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", &S); ^ user.cpp:67:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", &v[i].s); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms396kbOK5
20ms408kbIncorect0
316ms540kbIncorect0
428ms552kbIncorect0
556ms544kbIncorect0
6112ms552kbIncorect0
70ms388kbOK5
80ms400kbOK5
90ms400kbOK5
104ms412kbOK5
1112ms440kbOK5
1228ms492kbOK5
1356ms580kbOK5
14120ms784kbOK5
15152ms876kbOK5
16240ms1116kbOK5
17Depăşit1364kbTime limit exceeded.0
18Depăşit1612kbTime limit exceeded.0
19Depăşit1952kbTime limit exceeded.0
20Depăşit2324kbTime limit exceeded.0
Punctaj total55

Ceva nu functioneaza?