Borderou de evaluare (job #2278826)

Utilizator AndreiVisoiuAndrei Visoiu AndreiVisoiu Data 8 noiembrie 2018 16:44:52
Problema Zimeria Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 20

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:28:23: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[6]' [-Wformat=] scanf("%s", &s); ^ main.cpp:37:38: warning: format '%i' expects argument of type 'int', but argument 2 has type 'std::map<std::__cxx11::basic_string<char>, int>::size_type {aka long unsigned int}' [-Wformat=] if(p == 1) printf("%i", ap.size()); ^ main.cpp:17: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); ^ main.cpp:18: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); ^ main.cpp:23:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%i %i", &p, &n); ^ main.cpp:24:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%s", a); ^ main.cpp:28: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
12ms131kbOK5
24ms262kbOK5
3123ms4063kbOK5
4232ms7208kbOK5
5274ms8208kbMemory limit exceeded0
6285ms8208kbMemory limit exceeded0
72ms131kbIncorect0
84ms262kbIncorect0
95ms262kbIncorect0
1011ms524kbIncorect0
1122ms917kbIncorect0
1244ms1703kbIncorect0
1395ms3276kbIncorect0
14192ms6029kbIncorect0
15256ms7208kbIncorect0
16284ms8208kbMemory limit exceeded0
17260ms8208kbMemory limit exceeded0
18303ms7733kbTime limit exceeded0
19280ms8208kbMemory limit exceeded0
20271ms8208kbMemory limit exceeded0
Punctaj total20

Ceva nu functioneaza?