Pagini recente » Borderou de evaluare (job #553314) | Borderou de evaluare (job #1967355) | Borderou de evaluare (job #178891) | Borderou de evaluare (job #3172273) | Borderou de evaluare (job #1779581)
Borderou de evaluare (job #1779581)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:66:9: warning: unused variable ‘nr’ [-Wunused-variable]
int nr = 0;
^
user.cpp:32:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("seti.in", "r", stdin);
^
user.cpp:33:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("seti.out", "w", stdout);
^
user.cpp:36:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d\n", &n);
^
user.cpp:40:20: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets (p[0]);
^
user.cpp:45:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d\n", &m);
^
user.cpp:49:24: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets (p[i] + 1);
^
In file included from /usr/include/stdio.h:934:0,
from /usr/include/c++/4.8/cstdio:42,
from user.cpp:1:
In function ‘char* gets(char*)’,
inlined from ‘int main()’ at user.cpp:49:24:
/usr/include/i386-linux-gnu/bits/stdio2.h:230:28: warning: call to ‘__gets_warn’ declared with attribute warning: please use fgets or getline instead, gets can't specify buffer size [enabled by default]
return __gets_warn (__str);
^
/tmp/ccyOkwhI.o: In function `main':
user.cpp:(.text.startup+0xd8): warning: the `gets' function is dangerous and should not be used.
user.cpp:(.text.startup+0x7a): warning: the `gets' function is dangerous and should not be used.
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 92ms | 8164kb | OK | 10 |
| 2 | 44ms | 8244kb | OK | 10 |
| 3 | 68ms | 8848kb | OK | 10 |
| 4 | 72ms | 12400kb | OK | 10 |
| 5 | 120ms | 8892kb | Incorect | 0 |
| 6 | 208ms | 8916kb | Incorect | 0 |
| 7 | 320ms | 8948kb | Incorect | 0 |
| 8 | 364ms | 12768kb | Incorect | 0 |
| 9 | 360ms | 12836kb | Incorect | 0 |
| 10 | Depăşit | 12684kb | Time limit exceeded. | 0 |
| Punctaj total | 40 |