Borderou de evaluare (job #1653052)

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

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/ccdNBduH.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
10ms456kbOK10
24ms572kbOK10
324ms1052kbOK10
4Depăşit4292kbTime limit exceeded.0
5Depăşit6600kbTime limit exceeded.0
6Depăşit6344kbTime limit exceeded.0
7Depăşit6600kbTime limit exceeded.0
8Depăşit6864kbTime limit exceeded.0
9Depăşit6740kbTime limit exceeded.0
10Depăşit6736kbTime limit exceeded.0
Punctaj total30

Ceva nu functioneaza?