Pagini recente » Borderou de evaluare (job #1931413) | Borderou de evaluare (job #343761) | Borderou de evaluare (job #2545800) | Borderou de evaluare (job #2059932) | Borderou de evaluare (job #2162748)
Borderou de evaluare (job #2162748)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:74:9: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(a);
^
In file included from /usr/include/c++/5/cstdio:42:0,
from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:46,
from user.cpp:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
user.cpp:74:9: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(a);
^
In file included from /usr/include/c++/5/cstdio:42:0,
from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:46,
from user.cpp:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
user.cpp:74:15: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(a);
^
In file included from /usr/include/c++/5/cstdio:42:0,
from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:46,
from user.cpp:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
user.cpp:70:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &k);
^
user.cpp:74:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(a);
^
/tmp/cc5mRvWa.o: In function `main':
user.cpp:(.text.startup+0x3b): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 4ms | 2924kb | OK | 10 |
2 | 8ms | 2988kb | Incorect | 0 |
3 | 8ms | 2860kb | Incorect | 0 |
4 | 4ms | 2832kb | Incorect | 0 |
5 | 4ms | 2984kb | OK | 10 |
6 | 4ms | 2904kb | Incorect | 0 |
7 | 4ms | 2736kb | OK | 10 |
8 | 12ms | 2820kb | Incorect | 0 |
9 | 4ms | 2940kb | Incorect | 0 |
10 | 24ms | 2876kb | Incorect | 0 |
Punctaj total | 30 |