Problem | sumstack |
---|---|
User | blackpanther |
Submission Time | 2025-06-17 16:54:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumstack.cpp: In function ‘int main()’:
sumstack.cpp:13:6: error: expected ‘(’ before ‘t’
13 | if t==1{
| ^
| (
sumstack.cpp:17:4: error: ‘else’ without a previous ‘if’
17 | }else if t==2{
| ^~~~
sumstack.cpp:17:12: error: expected ‘(’ before ‘t’
17 | }else if t==2{
| ^
| (
sumstack.cpp:19:4: error: ‘else’ without a previous ‘if’
19 | }else {
| ^~~~
sumstack.cpp:22:13: error: ‘n’ was not declared in this scope
22 | int psum[n+1];
| ^
sumstack.cpp:23:4: error: ‘psum’ was not declared in this scope
23 | psum[0]=0;
| ^~~~