Borderou de evaluare (job #2181467)

Utilizator NToniBoSSNicolae Tonitza NToniBoSS Data 21 martie 2018 18:07:19
Problema PScPld Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:15:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(aux); ^ 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:15:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(aux); ^ 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:15:13: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(aux); ^ 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:11:11: warning: unused variable ‘fl’ [-Wunused-variable] int n,fl,i,c,r,j,a,b; ^ user.cpp:13:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("pscpld.in","r",stdin); ^ user.cpp:14:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("pscpld.out","w",stdout); ^ user.cpp:15:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(aux); ^ /tmp/ccVuM2zu.o: In function `main': user.cpp:(.text.startup+0x49): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms5356kbIncorect0
24ms5436kbIncorect0
34ms5568kbIncorect0
448ms11928kbOK10
512ms6832kbOK10
620ms9088kbIncorect0
724ms11152kbIncorect0
836ms11420kbIncorect0
940ms11716kbIncorect0
1044ms11952kbIncorect0
Punctaj total20

Ceva nu functioneaza?