Pagini recente » Borderou de evaluare (job #592005) | Borderou de evaluare (job #2833455) | Borderou de evaluare (job #1617025) | Borderou de evaluare (job #1190211) | Borderou de evaluare (job #2150487)
Borderou de evaluare (job #2150487)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:132:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(str+1);
^
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:132:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(str+1);
^
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:132:15: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(str+1);
^
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:128:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("luffpar.in","r",stdin);
^
user.cpp:129:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("luffpar.out","w",stdout);
^
user.cpp:131:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&n);
^
user.cpp:132:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(str+1);
^
user.cpp:136:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&m);
^
user.cpp:142:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&op,&l,&r);
^
/tmp/cchBFyrw.o: In function `main':
user.cpp:(.text.startup+0x6b): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 3332kb | OK | 5 |
2 | 0ms | 3332kb | OK | 5 |
3 | 4ms | 3336kb | OK | 5 |
4 | 4ms | 3332kb | OK | 5 |
5 | 288ms | 7544kb | OK | 5 |
6 | 288ms | 7544kb | OK | 5 |
7 | 248ms | 13728kb | OK | 5 |
8 | 248ms | 13732kb | OK | 5 |
9 | 276ms | 13732kb | OK | 5 |
10 | 272ms | 13732kb | OK | 5 |
11 | 196ms | 7528kb | OK | 5 |
12 | 196ms | 7524kb | OK | 5 |
13 | 280ms | 13712kb | OK | 5 |
14 | 276ms | 13716kb | OK | 5 |
15 | 324ms | 13728kb | OK | 5 |
16 | 320ms | 13732kb | OK | 5 |
17 | 420ms | 13732kb | OK | 5 |
18 | 364ms | 13732kb | OK | 5 |
19 | 416ms | 13732kb | OK | 5 |
20 | 416ms | 13732kb | OK | 5 |
Punctaj total | 100 |