| Problem | prefixsums |
|---|---|
| User | yay |
| Submission Time | 2025-07-05 09:56:53 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
prefixsums.cpp: In function ‘int32_t main()’:
prefixsums.cpp:3:13: error: expected initializer before ‘long’
3 | #define int long long
| ^~~~
prefixsums.cpp:12:5: note: in expansion of macro ‘int’
12 | int N, Q;
| ^~~
prefixsums.cpp:13:12: error: ‘N’ was not declared in this scope
13 | cin >> N >> Q;
| ^
prefixsums.cpp:13:17: error: ‘Q’ was not declared in this scope
13 | cin >> N >> Q;
| ^
prefixsums.cpp:15:5: error: ‘prefixSum’ was not declared in this scope
15 | prefixSum[0] = 0;
| ^~~~~~~~~
prefixsums.cpp:17:10: error: ‘i’ was not declared in this scope
17 | for (i=1,i<=N,i++) {
| ^
prefixsums.cpp:22:5: error: expected primary-expression before ‘while’
22 | while (Q--) {
| ^~~~~
prefixsums.cpp:20:6: error: expected ‘;’ before ‘while’
20 |