Borderou de evaluare (job #2250966)

Utilizator memecoinMeme Coin memecoin Data 30 septembrie 2018 21:48:06
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:51:16: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[500]’ [-Wformat=] scanf("%s", &s); ^ user.cpp:53:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < strlen(s); ++i) { ~~^~~~~~~~~~~ user.cpp:44: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:45: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:50:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:51: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
10ms752kbIncorect0
2Depăşit800kbTime limit exceeded.0
3Depăşit872kbTime limit exceeded.0
4Depăşit876kbTime limit exceeded.0
5Depăşit868kbTime limit exceeded.0
6Depăşit864kbTime limit exceeded.0
7Depăşit812kbTime limit exceeded.0
8Depăşit876kbTime limit exceeded.0
9Depăşit804kbTime limit exceeded.0
100ms864kbIncorect0
Punctaj total0

Ceva nu functioneaza?