Borderou de evaluare (job #957051)

Utilizator rudarelLup Ionut rudarel Data 4 iunie 2013 13:15:42
Problema Ecuatie Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:22:29: error: reference to ‘vector’ is ambiguous bool operator () (const vector& lhs , const vector& rhs) ^ user.cpp:11:8: note: candidates are: struct vector struct vector ^ In file included from /usr/local/include/c++/4.8.0/vector:64:0, from /usr/local/include/c++/4.8.0/bits/random.h:34, from /usr/local/include/c++/4.8.0/random:50, from /usr/local/include/c++/4.8.0/bits/stl_algo.h:65, from /usr/local/include/c++/4.8.0/algorithm:62, from user.cpp:2: /usr/local/include/c++/4.8.0/bits/stl_vector.h:210:11: note: template<class _Tp, class _Alloc> class std::vector class vector : protected _Vector_base<_Tp, _Alloc> ^ user.cpp:22:29: error: ‘vector’ does not name a type bool operator () (const vector& lhs , const vector& rhs) ^ user.cpp:22:37: error: ISO C++ forbids declaration of ‘lhs’ with no type [-fpermissive] bool operator () (const vector& lhs , const vector& rhs) ^ user.cpp:22:49: error: reference to ‘vector’ is ambiguous bool operator () (const vector& lhs , const vector& rhs) ^ user.cpp:11:8: note: candidates are: struct vector struct vector ^ In file included from /usr/local/include/c++/4.8.0/vector:64:0, from /usr/local/include/c++/4.8.0/bits/random.h:34, from /usr/local/include/c++/4.8.0/random:50, from /usr/local/include/c++/4.8.0/bits/stl_algo.h:65, from /usr/local/include/c++/4.8.0/algorithm:62, from user.cpp:2: /usr/local/include/c++/4.8.0/bits/stl_vector.h:210:11: note: template<class _Tp, class _Alloc> class std::vector class vector : protected _Vector_base<_Tp, _Alloc> ^ user.cpp:22:49: error: ‘vector’ does not name a type bool operator () (const vector& lhs , const vector& rhs) ^ user.cpp:22:57: error: ISO C++ forbids declaration of ‘rhs’ with no type [-fpermissive] bool operator () (const vector& lhs , const vector& rhs) ^ user.cpp: In member function ‘bool sorting1::operator()(const int&, const int&)’: user.cpp:24:17: error: request for member ‘p1’ in ‘lhs’, which is of non-class type ‘const int’ if (lhs.p1 == rhs.p1) ^ user.cpp:24:27: error: request for member ‘p1’ in ‘rhs’, which is of non-class type ‘const int’ if (lhs.p1 == rhs.p1) ^ user.cpp:25:24: error: request for member ‘q1’ in ‘lhs’, which is of non-class type ‘const int’

Ceva nu functioneaza?