Pagini recente » Borderou de evaluare (job #98524) | Borderou de evaluare (job #1845818) | Borderou de evaluare (job #2522386) | Borderou de evaluare (job #1615033) | Borderou de evaluare (job #2147004)
Borderou de evaluare (job #2147004)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:14:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(s);
^
In file included from /usr/include/c++/5/cstdio:42:0,
from user.cpp:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
user.cpp:14:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(s);
^
In file included from /usr/include/c++/5/cstdio:42:0,
from user.cpp:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
user.cpp:14:11: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(s);
^
In file included from /usr/include/c++/5/cstdio:42:0,
from user.cpp:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
user.cpp:10:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
{ freopen("secventa.in", "r",stdin);
^
user.cpp:11:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("secventa.out", "w",stdout);
^
user.cpp:13:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d\n", &n, &k);
^
user.cpp:14:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s);
^
/tmp/ccDEzaID.o: In function `main':
user.cpp:(.text.startup+0x66): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 3092kb | OK | 10 |
2 | 0ms | 3176kb | OK | 10 |
3 | 4ms | 3472kb | OK | 10 |
4 | 8ms | 5552kb | OK | 10 |
5 | 8ms | 5552kb | OK | 10 |
6 | 12ms | 5552kb | OK | 10 |
7 | 16ms | 5720kb | OK | 10 |
8 | 28ms | 6112kb | OK | 10 |
9 | 36ms | 6508kb | OK | 10 |
10 | 44ms | 6896kb | OK | 10 |
Punctaj total | 100 |