Borderou de evaluare (job #2250969)

Utilizator memecoinMeme Coin memecoin Data 30 septembrie 2018 21:51:53
Problema Cod2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:55:16: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[500]’ [-Wformat=] scanf("%s", &s); ^ user.cpp:57:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < strlen(s); ++i) { ~~^~~~~~~~~~~ user.cpp:48:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cod2.in", "r", stdin); ^ user.cpp:49:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cod2.out", "w", stdout); ^ user.cpp:54:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:55: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
10ms752kbOK10
2Depăşit752kbTime limit exceeded.0
3Depăşit756kbTime limit exceeded.0
4Depăşit804kbTime limit exceeded.0
5Depăşit756kbTime limit exceeded.0
6Depăşit756kbTime limit exceeded.0
7Depăşit876kbTime limit exceeded.0
8Depăşit800kbTime limit exceeded.0
9Depăşit872kbTime limit exceeded.0
100ms796kbOK10
Punctaj total20

Ceva nu functioneaza?