Problem | supertrees |
---|---|
User | Craftless |
Submission Time | 2023-02-15 22:35:53 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
supertrees.cpp: In function ‘int construct(std::vector<std::vector<int> >)’:
supertrees.cpp:5:10: error: ‘pArr’ was not declared in this scope
5 | int N = pArr.size();
| ^~~~
supertrees.cpp:15:10: error: no match for ‘operator=’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type’ {aka ‘std::vector<int>’} and ‘int’)
15 | p[i] = i;
| ^
In file included from /usr/include/c++/9/vector:72,
from supertrees.h:1,
from supertrees.cpp:1:
/usr/include/c++/9/bits/vector.tcc:198:5: note: candidate: ‘std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]’
198 | vector<_Tp, _Alloc>::
| ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/vector.tcc:199:42: note: no