Borderou de evaluare (job #2167852)

Utilizator EuAlexOtaku Hikikomori EuAlex Data 14 martie 2018 00:06:01
Problema Blis Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:40: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:40: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:40: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:73:15: error: ‘i’ was not declared in this scope bonus[i - 1].pop_back(); ^ user.cpp:35:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("blis.in", "r", stdin); ^ user.cpp:36:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("blis.out", "w", stdout); ^ user.cpp:39:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &k); ^ user.cpp:40:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s + 1); ^

Ceva nu functioneaza?