Problem | goodprogrammer |
---|---|
User | Vizvezdenec |
Submission Time | 2024-01-05 02:12:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
goodprogrammer.cpp: In function ‘int main()’:
goodprogrammer.cpp:16:10: error: no match for ‘operator=’ (operand types are ‘std::vector<int>’ and ‘int’)
16 | ar[0] = 2; ar[9999999] = 102;
| ^
In file included from /usr/include/c++/9/vector:72,
from goodprogrammer.cpp:3:
/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 known conversion for argument 1 from ‘int’ to ‘const std::vector<int>&’
199 | operator=(const vector<_Tp, _Alloc>& __x)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/9/vector:67,
from goodprogrammer.cpp:3:
/usr/