Borderou de evaluare (job #2931165)

Utilizator Victor2006Nicola Victor-Teodor Victor2006 Data 30 octombrie 2022 17:01:51
Problema Conexidad Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:44:52: error: no matching function for call to 'std::vector<int>::push_back(<brace-enclosed initializer list>)' 44 | q.push_back( {i, g[i][0], noNodes} ); | ^ In file included from /usr/include/c++/10/vector:67, from main.cpp:2: /usr/include/c++/10/bits/stl_vector.h:1187:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]' 1187 | push_back(const value_type& __x) | ^~~~~~~~~ /usr/include/c++/10/bits/stl_vector.h:1187:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const int&'} 1187 | push_back(const value_type& __x) | ~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/10/bits/stl_vector.h:1203:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]' 1203 | push_back(value_type&& __x) | ^~~~~~~~~ /usr/include/c++/10/bits/stl_vector.h:1203:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<int>::value_type&&' {aka 'int&&'} 1203 | push_back(value_type&& __x) | ~~~~~~~~~~~~~^~~ main.cpp:46:47: error: no matching function for call to 'std::vector<int>::push_back(<brace-enclosed initializer list>)' 46 | q.push_back( {i, -1, noNodes} ); | ^ In file included from /usr/include/c++/10/vector:67, from main.cpp:2: /usr/include/c++/10/bits/stl_vector.h:1187:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]' 1187 | push_back(const value_type& __x) | ^~~~~~~~~ /usr/include/c++/10/bits/stl_vector.h:1187:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const int&'} 1187 | push_back(const value_type& __x) | ~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/10/bits/stl_vector.h:1203:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]' 1203 | push_back(value_type&& __x) | ^~~~~~~~~ /usr/include/c++/10/bits/stl_vector.h:1203:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<int>::value_type&&' {aka 'int&&'} 1203 | push_back(value_type&& __x) | ~~~~~~~~~~~~~^~~ main.cpp:62:14: error: request for member 'width' in 'q.std::vector<int>::operator[](((std::vector<int>::size_type)l))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} 62 | q[l].width --; | ^~~~~ main.cpp:63:14: error: request for member 'width' in 'q.std::vector<int>::operator[](((std::vector<int>::size_type)r))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} 63 | q[r].width --; | ^~~~~ main.cpp:67:19: error: request for member 'width' in 'q.std::vector<int>::operator[](((std::vector<int>::size_type)l))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} 67 | if ( q[l].width == 0 ) | ^~~~~ main.cpp:69:19: error: request for member 'width' in 'q.std::vector<int>::operator[](((std::vector<int>::size_type)r))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} 69 | if ( q[r].width == 0 ) | ^~~~~ Non zero exit status: 1

Ceva nu functioneaza?