Borderou de evaluare (job #2150043)

Utilizator dianaICHBghita diana dianaICHB Data 3 martie 2018 11:19:41
Problema Risipa Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:11:5: 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:11:5: 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:11:11: 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:8:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("risipa.in","r",stdin); ^ user.cpp:9:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("risipa.out","w",stdout); ^ user.cpp:11:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ user.cpp:17:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&a,&b); ^ user.cpp:59:20: warning: assuming signed overflow does not occur when assuming that (X + c) >= X is always true [-Wstrict-overflow] for (i=0; i<con; i++) ^ /tmp/cczx2Gi7.o: In function `main': user.cpp:(.text.startup+0x55): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms1680kbOK10
2Depăşit20508kbTime limit exceeded.0
348msDepăşitMemory limit exceeded.0
448msDepăşitMemory limit exceeded.0
548msDepăşitMemory limit exceeded.0
648msDepăşitMemory limit exceeded.0
748msDepăşitMemory limit exceeded.0
848msDepăşitMemory limit exceeded.0
948msDepăşitMemory limit exceeded.0
1048msDepăşitMemory limit exceeded.0
Punctaj total10

Ceva nu functioneaza?