Borderou de evaluare (job #2193006)

Utilizator MoodyFaresFares Mohamad MoodyFares Data 8 aprilie 2018 10:59:03
Problema Covor Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:19:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(lin); ^~~~ In file included from /usr/include/c++/6/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:13: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(lin); ^ In file included from /usr/include/c++/6/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:12:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("covor.in", "r", stdin); ^ user.cpp:13:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("covor.out", "w", stdout); ^ user.cpp:16:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:19:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(lin); ^ /tmp/cciujpNX.o: In function `main': user.cpp:(.text.startup+0x88): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms864kbOK10
20ms804kbOK10
30ms756kbOK10
40ms804kbOK10
54ms796kbOK10
612ms876kbOK10
728ms816kbOK10
864ms800kbOK10
992ms812kbOK10
10116ms864kbOK10
Punctaj total100

Ceva nu functioneaza?