Borderou de evaluare (job #2136974)

Utilizator czlateaZlatea Cezar czlatea Data 20 februarie 2018 14:56:34
Problema Cifra Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

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
10ms816kbRaspuns gresit!0
20ms936kbRaspuns gresit!0
30ms812kbRaspuns gresit!0
40ms860kbRaspuns gresit!0
50ms812kbRaspuns gresit!0
60ms856kbRaspuns gresit!0
70ms816kbRaspuns gresit!0
84ms876kbRaspuns gresit!0
98ms816kbRaspuns gresit!0
1020ms816kbRaspuns gresit!0
Punctaj total0

Ceva nu functioneaza?