Pagini recente » Borderou de evaluare (job #1404299) | Borderou de evaluare (job #1463065) | Borderou de evaluare (job #2810876) | Borderou de evaluare (job #987826) | Borderou de evaluare (job #2146991)
Borderou de evaluare (job #2146991)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:13: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:13: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:13: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:12:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&n);
^
user.cpp:13:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(sir+1);
^
/tmp/ccn0TZf3.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 | 1016kb | Incorect | 0 | 0 |
| 2 | 4ms | 1016kb | Incorect | 0 |
| 3 | 0ms | 924kb | OK | 8 |
| 4 | 0ms | 836kb | OK | 8 |
| 5 | 0ms | 860kb | OK | 8 |
| 6 | 0ms | 876kb | OK | 8 |
| 7 | 0ms | 932kb | OK | 8 |
| 8 | 0ms | 936kb | OK | 8 |
| 9 | 0ms | 856kb | OK | 8 |
| 10 | 0ms | 864kb | OK | 8 |
| 11 | 0ms | 824kb | OK | 8 |
| 12 | 0ms | 860kb | OK | 8 |
| Punctaj total | 0 |