Problem sumstack
User 7Janish7
Submission Time 2026-02-02 16:31:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumstack.cpp: In function ‘int main()’:
sumstack.cpp:24:16: error: no match for ‘operator[]’ (operand types are ‘std::stack<long long int>’ and ‘long long int’)
24 | o += a[j];
| ^