Pagini recente » Borderou de evaluare (job #2347675) | Borderou de evaluare (job #2186467)
Borderou de evaluare (job #2186467)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:48:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(a + 1);
^~~~
In file included from /usr/include/c++/6/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:48:15: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(a + 1);
^
In file included from /usr/include/c++/6/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:44:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("next.in", "r", stdin);
^
user.cpp:45:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("next.out", "w", stdout);
^
user.cpp:48:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(a + 1);
^
user.cpp:50:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &k);
^
/tmp/cccxoUzx.o: In function `main':
user.cpp:(.text.startup+0x54): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 864kb | OK | 10 |
2 | 0ms | 872kb | OK | 10 |
3 | 0ms | 760kb | OK | 10 |
4 | 0ms | 800kb | OK | 10 |
5 | 0ms | 800kb | OK | 10 |
6 | 4ms | 856kb | OK | 10 |
7 | 20ms | 1172kb | OK | 10 |
8 | 52ms | 1964kb | OK | 10 |
9 | 68ms | 2420kb | OK | 10 |
10 | 76ms | 2608kb | OK | 10 |
Punctaj total | 100 |