Problem sumstack
User vadar2525
Submission Time 2026-02-02 15:43:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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