Problem | card |
---|---|
User | currypotato |
Submission Time | 2023-02-11 20:15:57 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
card.cpp: In function ‘int main()’:
card.cpp:23:21: error: no matching function for call to ‘std::deque<int>::push_front(std::deque<int>&)’
23 | t.push_front(t);
| ^
In file included from /usr/include/c++/9/deque:67,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:68,
from card.cpp:1:
/usr/include/c++/9/bits/stl_deque.h:1532:7: note: candidate: ‘void std::deque<_Tp, _Alloc>::push_front(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::deque<_Tp, _Alloc>::value_type = int]’
1532 | push_front(const value_type& __x)
| ^~~~~~~~~~
/usr/include/c++/9/bits/stl_deque.h:1532:36: note: no known conversion for argument 1 from ‘std::deque<int>’ to ‘const value_type&’ {aka ‘const int&’}
1532 | push_front(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/9/bits/stl_d