Borderou de evaluare (job #1213688)

Utilizator mariusn01Marius Nicoli mariusn01 Data 28 iulie 2014 20:39:13
Problema Poligon Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:17:29: error: ‘int y0’ redeclared as different kind of symbol int n, m, x, y, xa, ya, x0, y0, i, j, ok, p, u, sol, mid, k, s; ^ 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:242:1: error: previous declaration of ‘double y0(double)’ __MATHCALL (y0,, (_Mdouble_)); ^ user.cpp: In function ‘int main()’: user.cpp:34:16: error: assignment of function ‘double y0(double)’ x0 = xa;y0 = ya; ^ user.cpp:34:16: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:46:43: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if ((xa <= x0)|| ((xa == x0) && (ya < y0))) ^ user.cpp:47:71: error: no matching function for call to ‘std::vector<std::pair<std::pair<int, int>, std::pair<int, int> > >::push_back(std::pair<std::pair<int, int>, std::pair<int, double (*)(double)throw ()> >)’ M.push_back(make_pair( make_pair(xa, ya) , make_pair(x0, y0) )); ^ user.cpp:47:71: note: candidates are: In file included from /usr/include/c++/4.8/vector:64:0, from user.cpp:2: /usr/include/c++/4.8/bits/stl_vector.h:901:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<std::pair<int, int>, std::pair<int, int> >; _Alloc = std::allocator<std::pair<std::pair<int, int>, std::pair<int, int> > >; std::vector<_Tp, _Alloc>::value_type = std::pair<std::pair<int, int>, std::pair<int, int> >] push_back(const value_type& __x) ^ /usr/include/c++/4.8/bits/stl_vector.h:901:7: note: no known conversion for argument 1 from ‘std::pair<std::pair<int, int>, std::pair<int, double (*)(double)throw ()> >’ to ‘const value_type& {aka const std::pair<std::pair<int, int>, std::pair<int, int> >&}’ /usr/include/c++/4.8/bits/stl_vector.h:919:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::pair<std::pair<int, int>, std::pair<int, int> >; _Alloc = std::allocator<std::pair<std::pair<int, int>, std::pair<int, int> > >; std::vector<_Tp, _Alloc>::value_type = std::pair<std::pair<int, int>, std::pair<int, int> >] push_back(value_type&& __x) ^ /usr/include/c++/4.8/bits/stl_vector.h:919:7: note: no known conversion for argument 1 from ‘std::pair<std::pair<int, int>, std::pair<int, double (*)(double)throw ()> >’ to ‘std::vector<std::pair<std::pair<int, int>, std::pair<int, int> > >::value_type&& {aka std::pair<std::pair<int, int>, std::pair<int, int> >&&}’ user.cpp:49:71: error: no matching function for call to ‘std::vector<std::pair<std::pair<int, int>, std::pair<int, int> > >::push_back(std::pair<std::pair<int, double (*)(double)throw ()>, std::pair<int, int> >)’ M.push_back(make_pair( make_pair(x0, y0) , make_pair(xa, ya) )); ^ user.cpp:49:71: note: candidates are: In file included from /usr/include/c++/4.8/vector:64:0, from user.cpp:2: /usr/include/c++/4.8/bits/stl_vector.h:901:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<std::pair<int, int>, std::pair<int, int> >; _Alloc = std::allocator<std::pair<std::pair<int, int>, std::pair<int, int> > >; std::vector<_Tp, _Alloc>::value_type = std::pair<std::pair<int, int>, std::pair<int, int> >] push_back(const value_type& __x) ^ /usr/include/c++/4.8/bits/stl_vector.h:901:7: note: no known conversion for argument 1 from ‘std::pair<std::pair<int, double (*)(double)throw ()>, std::pair<int, int> >’ to ‘const value_type& {aka const std::pair<std::pair<int, int>, std::pair<int, int> >&}’ /usr/include/c++/4.8/bits/stl_vector.h:919:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::pair<std::pair<int, int>, std::pair<int, int> >; _Alloc = std::allocator<std::pair<std::pair<int, int>, std::pair<int, int> > >; std::vector<_Tp, _Alloc>::value_type = std::pair<std::pair<int, int>, std::pair<int, int> >] push_back(value_type&& __x) ^ /usr/include/c++/4.8/bits/stl_vector.h:919:7: note: no known conversion for argument 1 from ‘std::pair<std::pair<int, double (*)(double)throw ()>, std::pair<int, int> >’ to ‘std::vector<std::pair<std::pair<int, int>, std::pair<int, int> > >::value_type&& {aka std::pair<std::pair<int, int>, std::pair<int, int> >&&}’

Ceva nu functioneaza?