Borderou de evaluare (job #2181193)

Utilizator savulescustefanSavulescu Stefan savulescustefan Data 21 martie 2018 15:15:16
Problema Showroom Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 85

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:99: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:99: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:99:15: 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:89:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("showroom.in","r",stdin); ^ user.cpp:90:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("showroom.out","w",stdout); ^ user.cpp:91:44: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d %d %d %d\n", &n, &a, &g, &k); ^ user.cpp:99:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ /tmp/cckb5YCy.o: In function `main': user.cpp:(.text.startup+0xb9): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
136ms26200kbOK10
236ms26044kbOK10
340ms26100kbOK10
440ms26168kbOK10
548ms26448kbOK10
652ms26720kbPartial incorect5
768ms27148kbPartial incorect5
8116ms28408kbPartial incorect5
956ms26036kbOK10
10116ms28412kbOK10
Punctaj total85

Ceva nu functioneaza?