Pagini recente » Borderou de evaluare (job #928792) | Borderou de evaluare (job #32020) | Borderou de evaluare (job #619755) | Borderou de evaluare (job #86628) | Borderou de evaluare (job #2150781)
Borderou de evaluare (job #2150781)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:12:9: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(a+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:12:9: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(a+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:12:17: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(a+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: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:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&nrt);
^
user.cpp:12:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(a+1);
^
/tmp/ccfLdY7x.o: In function `main':
user.cpp:(.text.startup+0x76): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 3336kb | OK | 10 |
2 | 0ms | 3340kb | Incorect | 0 |
3 | 4ms | 3352kb | Incorect | 0 |
4 | 76ms | 5544kb | Incorect | 0 |
5 | 20ms | 3440kb | Incorect | 0 |
6 | 44ms | 3492kb | Incorect | 0 |
7 | 164ms | 5544kb | Incorect | 0 |
8 | 244ms | 6124kb | Incorect | 0 |
9 | 12ms | 3404kb | Incorect | 0 |
10 | 0ms | 3344kb | Incorect | 0 |
Punctaj total | 10 |