Borderou de evaluare (job #1688032)

Utilizator alexradu04Radu Alexandru alexradu04 Data 13 aprilie 2016 10:57:51
Problema Examen 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:17:6: warning: statement has no effect [-Wunused-value] s/2; ^ user.cpp: At global scope: user.cpp:64:1: error: expected unqualified-id before ‘return’ return 0; ^ user.cpp:65:1: error: expected declaration before ‘}’ token } ^ user.cpp: In function ‘int main()’: user.cpp:8:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("examen.in","r",stdin); ^ user.cpp:9:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("examen.out","w",stdout); ^ user.cpp:11:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:14:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&v[i]); ^

Ceva nu functioneaza?