Problem | card |
---|---|
User | Johnnie |
Submission Time | 2023-06-18 09:19:59 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
card.cpp: In function ‘int main()’:
card.cpp:15:14: error: no match for ‘operator=’ (operand types are ‘std::deque<int>’ and ‘int’)
15 | cards[i] = i;
| ^
In file included from /usr/include/c++/9/deque:69,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:68,
from card.cpp:1:
/usr/include/c++/9/bits/deque.tcc:93:5: note: candidate: ‘std::deque<_Tp, _Alloc>& std::deque<_Tp, _Alloc>::operator=(const std::deque<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]’
93 | deque<_Tp, _Alloc>::
| ^~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/deque.tcc:94:28: note: no known conversion for argument 1 from ‘int’ to ‘const std::deque<int>&’
94 | operator=(const deque& __x)
| ~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/9/deque:67,
from /usr/include/x86_64-linux-gnu/c++/9/bit