Borderou de evaluare (job #1368950)

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

Raport evaluator

Compilare: user.cpp: In function ‘bool my_cmp(std::string, std::string)’: user.cpp:18:20: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(val[a[i]] < val[b[i]]) ^ user.cpp:18:32: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(val[a[i]] < val[b[i]]) ^ user.cpp:20:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] else if(val[a[i]] > val[b[i]]) ^ user.cpp:20:37: warning: array subscript has type ‘char’ [-Wchar-subscripts] else if(val[a[i]] > val[b[i]]) ^ user.cpp: In function ‘int main()’: user.cpp:30:19: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[20]’ [-Wformat=] scanf("%s", &S); ^ user.cpp:32:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] val[S[i]] = i + 1; ^ user.cpp:38:27: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[20]’ [-Wformat=] scanf("%s", &S); ^ user.cpp:54:27: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[20]’ [-Wformat=] scanf("%s", &S); ^ user.cpp:26: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:27: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:29: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:30:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", &S); ^ user.cpp:38:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", &S); ^ user.cpp:54:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", &S); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms304kbOK5
20ms368kbOK5
3152ms3132kbOK5
4220msDepăşitMemory limit exceeded.0
5228msDepăşitMemory limit exceeded.0
6232msDepăşitMemory limit exceeded.0
70ms296kbOK5
84ms340kbOK5
912ms372kbOK5
1040ms480kbOK5
1188ms656kbOK5
12184ms928kbOK5
13Depăşit1684kbTime limit exceeded.0
14Depăşit3100kbTime limit exceeded.0
15Depăşit3796kbTime limit exceeded.0
16144msDepăşitMemory limit exceeded.0
17144msDepăşitMemory limit exceeded.0
18140msDepăşitMemory limit exceeded.0
19140msDepăşitMemory limit exceeded.0
20144msDepăşitMemory limit exceeded.0
Punctaj total45

Ceva nu functioneaza?