Problem | collectmushrooms |
---|---|
User | YellowPurpleDragon |
Submission Time | 2025-01-05 20:23:53 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
collectmushrooms.cpp:12:54: error: no matching function for call to ‘std::stack<long long int>::stack(ll)’
12 | stack<ll> st(2*(ll)pow(2, (ll)(ceil(log2(500000))))-1);
| ^
In file included from /usr/include/c++/9/stack:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:89,
from collectmushrooms.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:
collectmushrooms.cpp:12:54: note: candidate expects 2 arguments, 1 provided
12 | stack<ll> st(2*(ll)pow(2, (ll)(ceil(log2(500000))))-1);
|