Borderou de evaluare (job #2250961)

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

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:41:16: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[500]’ [-Wformat=] scanf("%s", &s); ^ user.cpp:43:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < strlen(s); ++i) { ~~^~~~~~~~~~~ user.cpp:34: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:35: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:40:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:41: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
10ms876kbIncorect0
2Depăşit808kbTime limit exceeded.0
3Depăşit880kbTime limit exceeded.0
4Depăşit800kbTime limit exceeded.0
5Depăşit876kbTime limit exceeded.0
6Depăşit936kbTime limit exceeded.0
7Depăşit856kbTime limit exceeded.0
8Depăşit796kbTime limit exceeded.0
9Depăşit808kbTime limit exceeded.0
100ms756kbIncorect0
Punctaj total0

Ceva nu functioneaza?