Pagini recente » Borderou de evaluare (job #1729420) | Borderou de evaluare (job #2881769) | Borderou de evaluare (job #481008) | Borderou de evaluare (job #1138845) | Borderou de evaluare (job #2169878)
Borderou de evaluare (job #2169878)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:10:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(s);
^
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:10:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(s);
^
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:10:11: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(s);
^
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:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("text2.in","r",stdin);
^
user.cpp:9:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("text2.out","w",stdout);
^
user.cpp:10:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s);
^
user.cpp:11:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", &n);
^
/tmp/ccEzp0F9.o: In function `main':
user.cpp:(.text.startup+0x4e): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 1248kb | Corect! | 10 |
2 | 0ms | 1248kb | Corect! | 10 |
3 | 0ms | 1256kb | Numar Posibilitati Gresit | 0 |
4 | 0ms | 1368kb | Numar Posibilitati Gresit | 0 |
5 | 0ms | 1260kb | Numar Posibilitati Gresit | 0 |
6 | 0ms | 1352kb | Corect! | 10 |
7 | 0ms | 1308kb | Numar Posibilitati Gresit | 0 |
8 | 0ms | 1404kb | Corect! | 10 |
9 | 0ms | 1312kb | Numar Posibilitati Gresit | 0 |
10 | 0ms | 1552kb | Corect! | 10 |
Punctaj total | 50 |