Borderou de evaluare (job #1491920)

Utilizator binicBinica Nicolae binic Data 26 septembrie 2015 15:03:10
Problema Trmax Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:4:22: error: ‘int y1’ redeclared as different kind of symbol int n,m,k,i,j,ma,x,y,y1,y2,a[2004][2004],b[2004][2004]; ^ In file included from /usr/include/features.h:357:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39, from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420, from /usr/include/c++/4.8/cstdio:41, from user.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:243:1: error: previous declaration of ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘int main()’: user.cpp:25:19: error: assignment of function ‘double y1(double)’ y1=b[i-1][j-1]; ^ user.cpp:25:19: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:27:27: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(y2>=y1+2&&y1>0)b[i][j]=y1+2; ^ user.cpp:27:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] user.cpp:27:46: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(y2>=y1+2&&y1>0)b[i][j]=y1+2; ^ user.cpp:27:45: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] if(y2>=y1+2&&y1>0)b[i][j]=y1+2; ^ user.cpp:28:29: warning: the address of ‘double y1(double)’ will never be NULL [-Waddress] else if(y1==0)b[i][j]=1; ^ user.cpp:7:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("trmax.in","r",stdin); ^ user.cpp:8:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("trmax.out","w",stdout); ^ user.cpp:9:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d",&n,&m,&k); ^ user.cpp:12:29: 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?