Borderou de evaluare (job #1605724)

Utilizator flandreiFlavius Andrei flandrei Data 19 februarie 2016 13:50:08
Problema Sms Status done
Runda lot3 Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:18:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s + 1); ^ 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:18:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s + 1); ^ 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:18:15: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s + 1); ^ 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:14:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sms.in", "r", stdin); ^ user.cpp:15:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sms.out", "w", stdout); ^ user.cpp:17:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%i %i\n", &n, &k); ^ user.cpp:18:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s + 1); ^ user.cpp:21:53: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lf %lf %lf", &pc[i], &pi[i], &pb[i]); ^ /tmp/cc1QU3Io.o: In function `main': user.cpp:(.text.startup+0x60): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms7384kbOk!10
24ms7460kbOk!10
34ms7496kbOk!10
44ms7388kbOk!10
58ms7416kbOk!10
652ms18196kbOk!10
772ms24568kbOk!10
880ms24888kbOk!10
996ms26532kbOk!10
1096ms26652kbOk!10
Punctaj total100

Ceva nu functioneaza?