Problem | sumstack |
---|---|
User | Shauryaw |
Submission Time | 2025-06-17 22:48:02 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumstack.cpp: In function ‘int main()’:
sumstack.cpp:10:10: error: ‘t’ was not declared in this scope
10 | cin >> t;
| ^
sumstack.cpp:16:3: error: expected ‘}’ before ‘else’
16 | else if (t==2) {
| ^~~~
sumstack.cpp:15:3: note: to match this ‘{’
15 | {
| ^
sumstack.cpp:16:3: error: expected ‘}’ before ‘else’
16 | else if (t==2) {
| ^~~~
sumstack.cpp:11:12: note: to match this ‘{’
11 | if (t==1){
| ^
sumstack.cpp:17:7: error: invalid use of non-static member function ‘void std::vector<_Tp, _Alloc>::pop_back() [with _Tp = int; _Alloc = std::allocator<int>]’
17 | yo.pop_back;
| ~~~^~~~~~~~
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algor