Pagini recente » Borderou de evaluare (job #2696206) | Borderou de evaluare (job #55101) | Borderou de evaluare (job #1386290) | Borderou de evaluare (job #3244084) | Borderou de evaluare (job #2136974)
Borderou de evaluare (job #2136974)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:30:9: 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:30:9: 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:30:16: 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:19:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("cifra.in", "r", stdin);
^
user.cpp:20:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("cifra.out", "w", stdout);
^
user.cpp:27:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d\n", &t);
^
user.cpp:30:17: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets (s);
^
user.cpp:24:54: warning: iteration 24u invokes undefined behavior [-Waggressive-loop-optimizations]
v[i] = (v[i - 1] + fact (i % 10, i % 4)) % 10;
^
user.cpp:22:19: note: containing loop
for (i = 1; i <= 99; i ++)
^
/tmp/ccdYrVlw.o: In function `main':
user.cpp:(.text.startup+0x112): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 816kb | Raspuns gresit! | 0 |
2 | 0ms | 936kb | Raspuns gresit! | 0 |
3 | 0ms | 812kb | Raspuns gresit! | 0 |
4 | 0ms | 860kb | Raspuns gresit! | 0 |
5 | 0ms | 812kb | Raspuns gresit! | 0 |
6 | 0ms | 856kb | Raspuns gresit! | 0 |
7 | 0ms | 816kb | Raspuns gresit! | 0 |
8 | 4ms | 876kb | Raspuns gresit! | 0 |
9 | 8ms | 816kb | Raspuns gresit! | 0 |
10 | 20ms | 816kb | Raspuns gresit! | 0 |
Punctaj total | 0 |