Problem | brick |
---|---|
User | rhea61 |
Submission Time | 2023-11-08 14:20:56 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
brick.cpp: In function ‘int32_t main()’:
brick.cpp:10:22: error: ‘n’ was not declared in this scope
10 | for (int i = 0; i < n; i++);
| ^
brick.cpp:13:10: error: no matching function for call to ‘std::stack<char>::push()’
13 | 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 = char; _Sequence = std::deque<char, std::allocator<char> >; std::stack<_Tp, _Sequence>::value_type = char]’
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<