Problem sumstack
User Shauryaw
Submission Time 2025-06-17 22:53:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumstack.cpp: In function ‘int main()’:
sumstack.cpp:24:4: error: expected initializer before ‘psum’
24 | psum[0] = 0;
| ^~~~
sumstack.cpp:26:8: error: ‘psum’ was not declared in this scope
26 | psum[i] = psum[i - 1] + yo[i - 1];
| ^~~~
sumstack.cpp:31:1: error: expected ‘}’ at end of input
31 | }
| ^
sumstack.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^