Borderou de evaluare (job #1391502)

Utilizator dobrebogdanDobre Bogdan Mihai dobrebogdan Data 17 martie 2015 23:31:09
Problema A+B Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int inv(int)’: user.cpp:11:12: error: expected primary-expression before ‘)’ token if() ^ user.cpp:12:1: error: expected primary-expression before ‘}’ token } ^ user.cpp:12:1: error: expected ‘;’ before ‘}’ token user.cpp:12:1: warning: no return statement in function returning non-void [-Wreturn-type] user.cpp: In function ‘int main()’: user.cpp:42:13: warning: unused variable ‘j’ [-Wunused-variable] int n,i,j,x,y; ^ user.cpp:40:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("arbore4.in","r",stdin); ^ user.cpp:41:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("arbore4.out","w",stdout); ^ user.cpp:43:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:47:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&x,&y); ^

Ceva nu functioneaza?