Borderou de evaluare (job #2148739)

Utilizator rares404AlShaytan - Balasescu Rares rares404 Data 1 martie 2018 22:41:20
Problema Grad Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

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
10ms756kbIncorect0
20ms756kbIncorect0
30ms756kbIncorect0
40ms872kbIncorect0
50ms816kbIncorect0
60ms804kbIncorect0
70ms864kbIncorect0
80ms792kbIncorect0
90ms796kbIncorect0
100ms800kbIncorect0
110ms756kbIncorect0
120ms756kbOK5
130ms800kbIncorect0
140ms816kbIncorect0
150ms756kbIncorect0
160ms756kbIncorect0
170ms796kbIncorect0
180ms796kbIncorect0
190ms864kbIncorect0
200ms752kbOK5
Punctaj total10

Ceva nu functioneaza?