Borderou de evaluare (job #1657923)

Utilizator PopoviciRobertPopovici Robert PopoviciRobert Data 20 martie 2016 21:33:23
Problema Tribute Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:5:37: error: ‘int y1 [50000]’ redeclared as different kind of symbol int x[MAXN],y[MAXN],x1[MAXN],y1[MAXN],ssm1[MAXN+1],ssm2[MAXN+1],vfx[MAXN+1],vfy[MAXN+1]; ^ 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:31:13: warning: pointer to a function used in arithmetic [-Wpointer-arith] y1[i]=y[i]; ^ user.cpp:31:14: error: assignment of read-only location ‘*(y1 + ((sizetype)i))’ y1[i]=y[i]; ^ user.cpp:31:14: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:36:16: warning: pointer to a function used in arithmetic [-Wpointer-arith] sort(y1,y1+n); ^ user.cpp:38:18: warning: pointer to a function used in arithmetic [-Wpointer-arith] ym=y1[(n-1)/2]; ^ user.cpp:38:18: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] In file included from /usr/include/c++/4.8/algorithm:62:0, from user.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘void std::sort(_RAIter, _RAIter) [with _RAIter = double (*)(double)throw ()]’: user.cpp:36:17: required from here /usr/include/c++/4.8/bits/stl_algo.h:5475:22: error: ISO C++ forbids using pointer to a function in subtraction [-fpermissive] std::__lg(__last - __first) * 2); ^ user.cpp:27:36: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fi,"%d%d%d" ,&n,&dx,&dy); ^ user.cpp:29:39: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fi,"%d%d" ,&x[i],&y[i]); ^

Ceva nu functioneaza?