Problem | pythonlist |
---|---|
User | ov5rki11 |
Submission Time | 2025-06-18 09:23:33 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
pythonlist.cpp: In function ‘int main()’:
pythonlist.cpp:6:8: error: class template argument deduction failed:
6 | stack stk;
| ^~~
pythonlist.cpp:6:8: error: no matching function for call to ‘stack()’
In file included from /usr/include/c++/9/stack:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:89,
from pythonlist.cpp:1:
/usr/include/c++/9/bits/stl_stack.h:290:5: note: candidate: ‘template<class _Container, class> std::stack(_Container)-> std::stack<typename _Container::value_type, _Container>’
290 | stack(_Container) -> stack<typename _Container::value_type, _Container>;
| ^~~~~
/usr/include/c++/9/bits/stl_stack.h:290:5: note: template argument deduction/substitution failed:
pythonlist.cpp:6:8: note: candidate expects 1 argument, 0 provided
6 | stack stk;
| ^~~
In file included from /usr/include/c++/9/stack:61,