Problem | brick |
---|---|
User | hackerman123 |
Submission Time | 2023-07-19 15:05:53 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
brick.cpp: In function ‘int main()’:
brick.cpp:16:11: error: no matching function for call to ‘std::stack<long long int>::push()’
16 | s.push();
| ^
In file included from /usr/include/c++/9/stack:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:89,
from brick.cpp:1:
/usr/include/c++/9/bits/stl_stack.h:233:7: note: candidate: ‘void std::stack<_Tp, _Sequence>::push(const value_type&) [with _Tp = long long int; _Sequence = std::deque<long long int, std::allocator<long long int> >; std::stack<_Tp, _Sequence>::value_type = long long int]’
233 | push(const value_type& __x)
| ^~~~
/usr/include/c++/9/bits/stl_stack.h:233:7: note: candidate expects 1 argument, 0 provided
/usr/include/c++/9/bits/stl_stack.h:238:7: note: candidate: ‘void std::stack<_Tp, _Sequence>::push(std::stack<_Tp, _Sequence>::value_type&&) [with _Tp = long long int