Problem conversations_easy
User JhoCyber
Submission Time 2025-01-15 16:53:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

conversations_easy.cpp: In function ‘int32_t main()’:
conversations_easy.cpp:9:34: error: no matching function for call to ‘std::stack<long long int>::stack(int)’
9 | stack<int> indexes(1000000000);
| ^
In file included from /usr/include/c++/9/stack:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:89,
from conversations_easy.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:
conversations_easy.cpp:9:34: note: candidate expects 2 arguments, 1 provided
9 | stack<int> indexes(1000000000);
|