Problem pythonlist
User AliLam
Submission Time 2025-06-18 09:24:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pythonlist.cpp: In function ‘int main()’:
pythonlist.cpp:6:12: error: ‘sync_with_studio’ is not a member of ‘std::ios_base’
6 | ios_base::sync_with_studio(0);
| ^~~~~~~~~~~~~~~~
pythonlist.cpp:11:12: error: no matching function for call to ‘std::stack<int>::size(int)’
11 | stk.size(0);
| ^
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:198:7: note: candidate: ‘std::stack<_Tp, _Sequence>::size_type std::stack<_Tp, _Sequence>::size() const [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >; std::stack<_Tp, _Sequence>::size_type = long unsigned int]’
198 | size() const
| ^~~~
/usr/include/c++/9/bits/stl_stack.h:198:7: note: candidate expects 0 arguments, 1 provided
pythonlist.cpp