Borderou de evaluare (job #2252294)

Utilizator memecoinMeme Coin memecoin Data 2 octombrie 2018 18:12:05
Problema Decod Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:72:22: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[15]’ [-Wformat=] scanf("%s\n", &first); ^ user.cpp:73:16: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[800005]’ [-Wformat=] scanf("%s", &s); ^ user.cpp:77:34: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘std::unordered_map<int, int>::mapped_type {aka int}’ [-Wformat=] printf("%lld\n", m[nr(first, 0)]); ^ user.cpp:84:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < strlen(s); i += p) { ~~^~~~~~~~~~~ user.cpp:68:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("decod.in", "r", stdin); ^ user.cpp:69:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("decod.out", "w", stdout); ^ user.cpp:71:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &k, &p); ^ user.cpp:72:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s\n", &first); ^ user.cpp:73:17: 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
10ms836kbIncorect0
2112msDepăşitMemory limit exceeded.0
30ms860kbIncorect0
40ms876kbIncorect0
50ms856kbIncorect0
60ms860kbIncorect0
70ms840kbIncorect0
80ms872kbIncorect0
90ms840kbIncorect0
100ms880kbIncorect0
Punctaj total0

Ceva nu functioneaza?