Borderou de evaluare (job #1604951)

Utilizator Cudrici_CarinaCudrici Carina Cudrici_Carina Data 18 februarie 2016 18:11:42
Problema Cabana2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:12:19: error: ‘int y1 [50001]’ redeclared as different kind of symbol int x1[Dim],y1[Dim],x2[Dim],y2[Dim]; ^ 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/iosfwd:38, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, 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:33:38: warning: pointer to a function used in arithmetic [-Wpointer-arith] for(i=1;i<=n;i++) {x1[i]=X[i].x; y1[i]=X[i].y;} ^ user.cpp:33:39: error: assignment of read-only location ‘*(y1 + ((sizetype)i))’ for(i=1;i<=n;i++) {x1[i]=X[i].x; y1[i]=X[i].y;} ^ user.cpp:33:39: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:46:38: warning: pointer to a function used in arithmetic [-Wpointer-arith] if ( ! binary_search(y1+low,y1+up+1,v[i].y) ) continue; ^ user.cpp:46:45: warning: pointer to a function used in arithmetic [-Wpointer-arith] if ( ! binary_search(y1+low,y1+up+1,v[i].y) ) continue; ^ user.cpp:46:48: warning: pointer to a function used in arithmetic [-Wpointer-arith] if ( ! binary_search(y1+low,y1+up+1,v[i].y) ) continue; ^ user.cpp:57:45: warning: pointer to a function used in arithmetic [-Wpointer-arith] if( binary_search(x1+1,x1+n+1,k) and y1[k]!=v[i].y and y1[k]!=v[j].y) continue; ^ user.cpp:57:53: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if( binary_search(x1+1,x1+n+1,k) and y1[k]!=v[i].y and y1[k]!=v[j].y) continue; ^ user.cpp:57:63: warning: pointer to a function used in arithmetic [-Wpointer-arith] if( binary_search(x1+1,x1+n+1,k) and y1[k]!=v[i].y and y1[k]!=v[j].y) continue; ^ user.cpp:57:71: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if( binary_search(x1+1,x1+n+1,k) and y1[k]!=v[i].y and y1[k]!=v[j].y) continue; ^ 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 ‘bool std::binary_search(_FIter, _FIter, const _Tp&) [with _FIter = double (*)(double)throw (); _Tp = int]’: user.cpp:46:56: required from here /usr/include/c++/4.8/bits/stl_algo.h:2733:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] return __i != __last && !(__val < *__i); ^

Ceva nu functioneaza?