Pagini recente » Borderou de evaluare (job #511827) | Borderou de evaluare (job #1437606) | Borderou de evaluare (job #1733926) | Borderou de evaluare (job #2988980) | Borderou de evaluare (job #2148739)
Borderou de evaluare (job #2148739)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:43:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(c) ;
^
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:43:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(c) ;
^
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:43:11: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(c) ;
^
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:41:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("grad.in","r",stdin) ;
^
user.cpp:42:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("grad.out","w",stdout) ;
^
user.cpp:43:13: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(c) ;
^
user.cpp: In function ‘void grad(char*)’:
user.cpp:22:43: warning: iteration 10u invokes undefined behavior [-Waggressive-loop-optimizations]
for (j = 0 ; j <= 10 ; ++ j) f[j] = 0 ;
^
user.cpp:22:20: note: containing loop
for (j = 0 ; j <= 10 ; ++ j) f[j] = 0 ;
^
/tmp/ccOTwwpS.o: In function `main':
user.cpp:(.text.startup+0x38): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 756kb | Incorect | 0 |
2 | 0ms | 756kb | Incorect | 0 |
3 | 0ms | 756kb | Incorect | 0 |
4 | 0ms | 872kb | Incorect | 0 |
5 | 0ms | 816kb | Incorect | 0 |
6 | 0ms | 804kb | Incorect | 0 |
7 | 0ms | 864kb | Incorect | 0 |
8 | 0ms | 792kb | Incorect | 0 |
9 | 0ms | 796kb | Incorect | 0 |
10 | 0ms | 800kb | Incorect | 0 |
11 | 0ms | 756kb | Incorect | 0 |
12 | 0ms | 756kb | OK | 5 |
13 | 0ms | 800kb | Incorect | 0 |
14 | 0ms | 816kb | Incorect | 0 |
15 | 0ms | 756kb | Incorect | 0 |
16 | 0ms | 756kb | Incorect | 0 |
17 | 0ms | 796kb | Incorect | 0 |
18 | 0ms | 796kb | Incorect | 0 |
19 | 0ms | 864kb | Incorect | 0 |
20 | 0ms | 752kb | OK | 5 |
Punctaj total | 10 |