Borderou de evaluare (job #1369014)

Utilizator Mihai22eMihai Ionut Enache Mihai22e Data 2 martie 2015 21:08:36
Problema Zimeria Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 90

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:17:19: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[22]’ [-Wformat=] scanf("%s", &s); ^ user.cpp:19:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] val[s[i]] = i + 1; ^ user.cpp:24:23: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[22]’ [-Wformat=] scanf("%s", &s); ^ user.cpp:27:41: warning: array subscript has type ‘char’ [-Wchar-subscripts] v[i] = v[i] * 100 + val[s[j]]; ^ user.cpp:13: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:14: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:16: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:17:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", &s); ^ user.cpp:24:24: 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
10ms260kbOK5
20ms272kbOK5
312ms460kbOK5
428ms656kbOK5
556ms1048kbOK5
6128ms1824kbOK5
70ms260kbOK5
80ms264kbOK5
90ms272kbOK5
104ms284kbOK5
118ms296kbOK5
1216ms340kbOK5
1336ms420kbOK5
1472ms572kbOK5
1596ms652kbOK5
16148ms848kbOK5
17188ms1040kbOK5
18236ms1232kbOK5
19Depăşit1516kbTime limit exceeded.0
20Depăşit1816kbTime limit exceeded.0
Punctaj total90

Ceva nu functioneaza?