Borderou de evaluare (job #1653048)

Utilizator bogdan10bosBogdan Sitaru bogdan10bos Data 15 martie 2016 18:22:28
Problema Sub Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:21:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sub.in", "r", stdin); ^ user.cpp:22:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sub.out", "w", stdout); ^ user.cpp:25:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); N = n; ^ user.cpp:29:20: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s + 1); ^ user.cpp:55:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:58:20: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s + 1); ^ /tmp/cc2ySgbX.o: In function `main': user.cpp:(.text.startup+0x95): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms460kbIncorect0
24ms576kbOK10
324ms1060kbOK10
4Depăşit4296kbTime limit exceeded.0
5Depăşit6468kbTime limit exceeded.0
6Depăşit6200kbTime limit exceeded.0
7Depăşit6728kbTime limit exceeded.0
8Depăşit6860kbTime limit exceeded.0
9Depăşit6736kbTime limit exceeded.0
10Depăşit6728kbTime limit exceeded.0
Punctaj total20

Ceva nu functioneaza?