Pagini recente » Borderou de evaluare (job #1503668) | Borderou de evaluare (job #20974) | Borderou de evaluare (job #2069889) | Borderou de evaluare (job #1899609) | Borderou de evaluare (job #2146999)
Borderou de evaluare (job #2146999)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:14:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(sir+1);
^
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(sir+1);
^
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:15: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(sir+1);
^
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:9:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("weeee.in","r",stdin);
^
user.cpp:10:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("weeee.out","w",stdout);
^
user.cpp:13:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&n);
^
user.cpp:14:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(sir+1);
^
/tmp/ccr0v7v6.o: In function `main':
user.cpp:(.text.startup+0x57): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 4ms | 1008kb | OK | 8 | 96 |
2 | 4ms | 1012kb | OK | 8 |
3 | 0ms | 924kb | OK | 8 |
4 | 0ms | 836kb | OK | 8 |
5 | 0ms | 868kb | OK | 8 |
6 | 0ms | 820kb | OK | 8 |
7 | 0ms | 876kb | OK | 8 |
8 | 0ms | 820kb | OK | 8 |
9 | 0ms | 852kb | OK | 8 |
10 | 0ms | 868kb | OK | 8 |
11 | 0ms | 876kb | OK | 8 |
12 | 0ms | 824kb | OK | 8 |
Punctaj total | 100 |