Problem | sumstack |
---|---|
User | blackpanther |
Submission Time | 2025-06-17 16:49:27 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumstack.cpp:2:20: error: expected ‘;’ before ‘long’
2 | using namespace std
| ^
| ;
cc1plus: error: ‘::main’ must return ‘int’
sumstack.cpp: In function ‘int main()’:
sumstack.cpp:6:12: error: expected ‘;’ before ‘long’
6 | cin.tie(0)
| ^
| ;
sumstack.cpp:8:7: error: ‘q’ was not declared in this scope
8 | cin>>q;
| ^
sumstack.cpp:11:9: error: ‘t’ was not declared in this scope
11 | cin>> t;
| ^
sumstack.cpp:12:6: error: expected ‘(’ before ‘t’
12 | if t==1{
| ^
| (
sumstack.cpp:16:4: error: ‘else’ without a previous ‘if’
16 | }else if t==2{
| ^~~~
sumstack.cpp:16:12: error: expected ‘(’ before ‘t’
16 | }else if t==2{
| ^
| (
sumstack.cpp:18:4: error: ‘else’ without a previous ‘if’
1