Borderou de evaluare (job #1834868)

Utilizator MoodyFaresFares Mohamad MoodyFares Data 25 decembrie 2016 17:54:22
Problema Prefix 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:35:9: error: ‘gasit’ was not declared in this scope gasit = true; ^ user.cpp:39:9: error: ‘gasit’ was not declared in this scope if (gasit == false) ^ user.cpp:31:10: warning: unused variable ‘found’ [-Wunused-variable] bool found = false; ^ user.cpp:23:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("prefix.in", "r", stdin); ^ user.cpp:24:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("prefix.out", "w", stdout); ^ user.cpp:26:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d ", &t); ^ user.cpp:28:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s + 1); ^

Ceva nu functioneaza?