Problem sumstack
User LL
Submission Time 2025-06-17 17:11:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumstack.cpp: In function ‘int main()’:
sumstack.cpp:16:12: error: expected ‘;’ before ‘vec’
16 | cin >> x
| ^
| ;
17 | vec.push_back(x);
| ~~~
sumstack.cpp:23:20: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
23 | ans += vec.at[j];
| ^