Borderou de evaluare (job #539810)

Utilizator avatar doruf Doru Floare doruf IP ascuns
Problemă 2numere (baraj gimnaziu) Compilator cpp
Rundă Baraj gimnaziu Status evaluat
Dată 5 mar. 2020 11:14:58 Scor 0

Raport evaluator

Eroare de compilare: user.cpp:19:5: error: ‘int index’ redeclared as different kind of symbol /usr/include/string.h:482:1: error: previous declaration of ‘const char* index(const char*, int)’ user.cpp: In function ‘void GenY(int, int, int)’: user.cpp:52:26: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator<’ user.cpp:52:38: error: no match for ‘operator[]’ in ‘x[index]’ user.cpp:52:38: note: candidates are: /usr/include/c++/4.6/bits/stl_vector.h:695:7: note: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = int, _Alloc = std::allocator<int>, std::vector<_Tp, _Alloc>::reference = int&, std::vector<_Tp, _Alloc>::size_type = unsigned int] /usr/include/c++/4.6/bits/stl_vector.h:695:7: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘unsigned int’ /usr/include/c++/4.6/bits/stl_vector.h:710:7: note: std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) const [with _Tp = int, _Alloc = std::allocator<int>, std::vector<_Tp, _Alloc>::const_reference = const int&, std::vector<_Tp, _Alloc>::size_type = unsigned int] /usr/include/c++/4.6/bits/stl_vector.h:710:7: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘unsigned int’ user.cpp:53:6: error: no pre-increment operator for type user.cpp:54:17: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator==’ user.cpp:56:12: error: overloaded function with no contextual type information user.cpp:59:14: error: no match for ‘operator[]’ in ‘x[index]’ user.cpp:59:14: note: candidates are: /usr/include/c++/4.6/bits/stl_vector.h:695:7: note: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = int, _Alloc = std::allocator<int>, std::vector<_Tp, _Alloc>::reference = int&, std::vector<_Tp, _Alloc>::size_type = unsigned int] /usr/include/c++/4.6/bits/stl_vector.h:695:7: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘unsigned int’ /usr/include/c++/4.6/bits/stl_vector.h:710:7: note: std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) const [with _Tp = int, _Alloc = std::allocator<int>, std::vector<_Tp, _Alloc>::const_reference = const int&, std::vector<_Tp, _Alloc>::size_type = unsigned int] /usr/include/c++/4.6/bits/stl_vector.h:710:7: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘unsigned int’ user.cpp:59:39: error: no match for ‘operator[]’ in ‘x[index]’ user.cpp:59:39: note: candidates are: /usr/include/c++/4.6/bits/stl_vector.h:695:7: note: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = int, _Alloc = std::allocator<int>, std::vector<_Tp, _Alloc>::reference = int&, std::vector<_Tp, _Alloc>::size_type = unsigned int] /usr/include/c++/4.6/bits/stl_vector.h:695:7: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘unsigned int’ /usr/include/c++/4.6/bits/stl_vector.h:710:7: note: std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) const [with _Tp = int, _Alloc = std::allocator<int>, std::vector<_Tp, _Alloc>::const_reference = const int&, std::vector<_Tp, _Alloc>::size_type = unsigned int] /usr/include/c++/4.6/bits/stl_vector.h:710:7: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘unsigned int’ user.cpp:60:17: error: no match for ‘operator[]’ in ‘x[index]’ user.cpp:60:17: note: candidates are: /usr/include/c++/4.6/bits/stl_vector.h:695:7: note: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = int, _Alloc = std::allocator<int>, std::vector<_Tp, _Alloc>::reference = int&, std::vector<_Tp, _Alloc>::size_type = unsigned int] /usr/include/c++/4.6/bits/stl_vector.h:695:7: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘unsigned int’ /usr/include/c++/4.6/bits/stl_vector.h:710:7: note: std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) const [with _Tp = int, _Alloc = std::allocator<int>, std::vector<_Tp, _Alloc>::const_reference = const int&, std::vector<_Tp, _Alloc>::size_type = unsigned int] /usr/include/c++/4.6/bits/stl_vector.h:710:7: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘unsigned int’ user.cpp:60:38: error: no match for ‘operator[]’ in ‘x[index]’ user.cpp:60:38: note: candidates are: /usr/include/c++/4.6/bits/stl_vector.h:695:7: note: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = int, _Alloc = std::allocator<int>, std::vector<_Tp, _Alloc>::reference = int&, std::vector<_Tp, _Alloc>::size_type = unsigned int] /usr/include/c++/4.6/bits/stl_vector.h:695:7: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘unsigned int’ /usr/include/c++/4.6/bits/stl_vector.h:710:7: note: std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) const [with _Tp = int, _Alloc = std::allocator<int>, std::vector<_Tp, _Alloc>::const_reference = const int&, std::vector<_Tp, _Alloc>::size_type = unsigned int] /usr/include/c++/4.6/bits/stl_vector.h:710:7: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘unsigned int’