Problem littlejohnny4
User DaPeter
Submission Time 2025-12-15 11:29:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

littlejohnny4.cpp: In function ‘int main()’:
littlejohnny4.cpp:10:47: error: no match for ‘operator=’ (operand types are ‘std::vector<long long int>’ and ‘int’)
10 | vector<int> a[n+5];for(int i=0;i<n;i++) a[i]=0;
| ^
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 littlejohnny4.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 = long long int; _Alloc = std::allocator<long long int>]’
198 | vector<_Tp, _Alloc>::
| ^~~~~~~~~~~~~~~~~~~