Problem | sumstack |
---|---|
User | Ming |
Submission Time | 2025-06-20 21:29:14 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumstack.cpp:2:1: error: ‘cin’ does not name a type
2 | cin >> q;
| ^~~
sumstack.cpp:4:1: error: ‘vector’ does not name a type
4 | vector<int> psum;
| ^~~~~~
sumstack.cpp:5:1: error: ‘psum’ does not name a type
5 | psum.push_back(0); // make psum 1-indexed
| ^~~~
sumstack.cpp:7:1: error: expected unqualified-id before ‘for’
7 | for (int _ = 0; _ < q; _++) {
| ^~~
sumstack.cpp:7:17: error: ‘_’ does not name a type
7 | for (int _ = 0; _ < q; _++) {
| ^
sumstack.cpp:7:24: error: ‘_’ does not name a type
7 | for (int _ = 0; _ < q; _++) {
| ^