Pagini recente » Borderou de evaluare (job #2102591) | Borderou de evaluare (job #188286) | Borderou de evaluare (job #3202733) | Borderou de evaluare (job #2264496) | Borderou de evaluare (job #2169961)
Borderou de evaluare (job #2169961)
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/ccdXwHRv.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 | 1252kb | Corect! | 10 |
2 | 0ms | 1332kb | Corect! | 10 |
3 | 0ms | 1296kb | Corect! | 10 |
4 | 0ms | 1268kb | Numar Posibilitati Gresit | 0 |
5 | 0ms | 1332kb | Numar Posibilitati Gresit | 0 |
6 | 0ms | 1364kb | Corect! | 10 |
7 | 0ms | 1356kb | Numar Posibilitati Gresit | 0 |
8 | 0ms | 1296kb | Corect! | 10 |
9 | 0ms | 1428kb | Numar Posibilitati Gresit | 0 |
10 | 0ms | 1596kb | Corect! | 10 |
Punctaj total | 60 |