Borderou de evaluare (job #2181221)

Utilizator savulescustefanSavulescu Stefan savulescustefan Data 21 martie 2018 15:31:36
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/ccn0Hvht.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
136ms26148kbOK10
236ms26052kbOK10
340ms26196kbOK10
440ms26236kbOK10
548ms26432kbOK10
656ms26720kbPartial incorect5
772ms27092kbPartial incorect5
8124ms28380kbPartial incorect5
956ms26084kbOK10
10116ms28392kbOK10
Punctaj total85

Ceva nu functioneaza?