Problem | party |
---|---|
User | IWKR |
Submission Time | 2024-06-25 10:56:37 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
party.cpp: In function ‘int main()’:
party.cpp:8:9: error: no match for ‘operator=’ (operand types are ‘std::vector<long long int>’ and ‘int’)
8 | arr[1]=1;
| ^
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 party.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>::
| ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/vector.tcc:199:42: note: no known conversion for argument 1 from ‘int’ to ‘const std