Pagini recente » Borderou de evaluare (job #347603) | Borderou de evaluare (job #1293681) | Borderou de evaluare (job #1144993) | Borderou de evaluare (job #92753) | Borderou de evaluare (job #2147950)
Borderou de evaluare (job #2147950)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:13:1: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(ch+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:1: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(ch+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:10: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(ch+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:8:29: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sobo.in","r",stdin);
^
user.cpp:9:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sobo.out","w",stdout);
^
user.cpp:11:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld\n",&n,&l);
^
user.cpp:13:11: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(ch+1);
^
user.cpp:14:12: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("\n");
^
user.cpp:18:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld",&cost[i]);
^
/tmp/cc9yTzTD.o: In function `main':
user.cpp:(.text.startup+0x76): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 836kb | Cool! | 10 |
2 | 0ms | 832kb | Cool! | 10 |
3 | 0ms | 840kb | Cool! | 10 |
4 | 4ms | 860kb | Cool! | 10 |
5 | 4ms | 876kb | Cool! | 10 |
6 | 28ms | 908kb | Cool! | 10 |
7 | 52ms | 976kb | Cool! | 10 |
8 | 88ms | 976kb | Cool! | 10 |
9 | 180ms | 1096kb | Cool! | 10 |
10 | 176ms | 1100kb | Cool! | 10 |
Punctaj total | 100 |