Problem | catlunch |
---|---|
User | JhoCyber |
Submission Time | 2025-01-15 22:12:11 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
catlunch.cpp: In function ‘int32_t main()’:
catlunch.cpp:10:22: error: no matching function for call to ‘std::stack<long long int>::stack(long long int&)’
10 | stack<int>lunch(n);
| ^
In file included from /usr/include/c++/9/stack:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:89,
from catlunch.cpp:1:
/usr/include/c++/9/bits/stl_stack.h:185:2: note: candidate: ‘template<class _Alloc, class _Requires> std::stack<_Tp, _Sequence>::stack(std::stack<_Tp, _Sequence>&&, const _Alloc&)’
185 | stack(stack&& __q, const _Alloc& __a)
| ^~~~~
/usr/include/c++/9/bits/stl_stack.h:185:2: note: template argument deduction/substitution failed:
catlunch.cpp:10:22: note: candidate expects 2 arguments, 1 provided
10 | stack<int>lunch(n);
| ^
In file included from /usr/include/c++/9/stack:61,