Problem wabot
User justin271828
Submission Time 2024-05-27 12:56:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

wabot.cpp: In function ‘int main()’:
wabot.cpp:8:50: error: no match for ‘operator=’ (operand types are ‘std::vector<int>’ and ‘std::vector<int>*’)
8 | for (int i = 0; i <= 1000000; i++) arr[i] = new vector<int>;
| ^~~~~~~~~~~
In file included from /usr/include/c++/9/vector:72,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from wabot.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/inc