Pagini recente » Borderou de evaluare (job #478588) | Borderou de evaluare (job #563027) | Borderou de evaluare (job #1386391) | Borderou de evaluare (job #3249922) | Borderou de evaluare (job #2148771)
Borderou de evaluare (job #2148771)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:12:9: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(s+1);
^
In file included from /usr/include/c++/5/cstdio:42:0,
from /usr/include/x86_64-linux-gnu/c++/5/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:12:9: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(s+1);
^
In file included from /usr/include/c++/5/cstdio:42:0,
from /usr/include/x86_64-linux-gnu/c++/5/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:12:17: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(s+1);
^
In file included from /usr/include/c++/5/cstdio:42:0,
from /usr/include/x86_64-linux-gnu/c++/5/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:7:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("prefix.in","r",stdin);
^
user.cpp:8:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("prefix.out","w",stdout);
^
user.cpp:9:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&n);
^
user.cpp:12:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s+1);
^
/tmp/ccf4Ekam.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 |
1 | 0ms | 3544kb | OK | 10 |
2 | 0ms | 3548kb | OK | 10 |
3 | 0ms | 3560kb | OK | 10 |
4 | 28ms | 5936kb | OK | 10 |
5 | 8ms | 3644kb | OK | 10 |
6 | 20ms | 3788kb | OK | 10 |
7 | 60ms | 5932kb | OK | 10 |
8 | 84ms | 6328kb | OK | 10 |
9 | 8ms | 3612kb | OK | 10 |
10 | 0ms | 3544kb | OK | 10 |
Punctaj total | 100 |