Pagini recente » Borderou de evaluare (job #2058230) | Borderou de evaluare (job #977550) | Borderou de evaluare (job #1875970) | Borderou de evaluare (job #2700333) | Borderou de evaluare (job #2200668)
Borderou de evaluare (job #2200668)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:17:4: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(s);
^~~~
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:17:10: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(s);
^
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:13:14: warning: unused variable ‘sum’ [-Wunused-variable]
long long sum=0;
^~~
user.cpp:9:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("secventa.in","r",stdin);
^
user.cpp:10:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("secventa.out","w",stdout);
^
user.cpp:12:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d\n",&n,&k);
^
user.cpp:17:11: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s);
^
/tmp/ccNDKQem.o: In function `main':
user.cpp:(.text.startup+0x112): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 2888kb | OK | 10 |
2 | 0ms | 2940kb | OK | 10 |
3 | 8ms | 5156kb | OK | 10 |
4 | 8ms | 5156kb | OK | 10 |
5 | 8ms | 5152kb | OK | 10 |
6 | 12ms | 5156kb | OK | 10 |
7 | 16ms | 5152kb | OK | 10 |
8 | 24ms | 5152kb | OK | 10 |
9 | 32ms | 5152kb | OK | 10 |
10 | 44ms | 7204kb | OK | 10 |
Punctaj total | 100 |