Borderou de evaluare (job #1515298)

Utilizator binicBinica Nicolae binic Data 1 noiembrie 2015 13:41:01
Problema Narbi Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int n(int)’: user.cpp:4:12: error: ‘int n(int)’ redeclared as different kind of symbol int n(int x) ^ user.cpp:3:5: error: previous declaration of ‘int n’ int n,k,x,i,nr,a,j,p,b[33003]; ^ user.cpp:6:15: warning: unused variable ‘r’ [-Wunused-variable] int ras=0,r=0; ^ user.cpp: In function ‘int main()’: user.cpp:24:20: error: ‘n’ cannot be used as a function nr+=n(j); ^ user.cpp:16:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("narbi.in","r",stdin); ^ user.cpp:17:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("narbi.out","w",stdout); ^ user.cpp:18:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d",&n,&k,&a); ^

Ceva nu functioneaza?