Borderou de evaluare (job #546179)

Utilizator S7012MYPetru Trimbitas S7012MY Data 4 martie 2011 16:02:17
Problema Scara 2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:34: error: conflicting declaration 'std::vector<int, std::allocator<int> > x' user.cpp:16: error: 'x' has a previous declaration as 'double x' user.cpp: In function 'void print(int)': user.cpp:43: error: request for member 'clear' in 'x', which is of non-class type 'double' user.cpp:44: error: request for member 'push_back' in 'x', which is of non-class type 'double' user.cpp:45: error: no matching function for call to 'std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >::push_back(double&)' /usr/include/c++/4.2/bits/stl_vector.h:597: note: candidates are: void std::vector<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = std::vector<int, std::allocator<int> >, _Alloc = std::allocator<std::vector<int, std::allocator<int> > >] user.cpp:46: error: request for member 'clear' in 'x', which is of non-class type 'double' user.cpp:41: warning: unused variable 'i' user.cpp: In function 'int main()': user.cpp:69: warning: comparison between signed and unsigned integer expressions user.cpp:69: warning: comparison between signed and unsigned integer expressions

Ceva nu functioneaza?