Problem | prefixsums |
---|---|
User | nguyendinhanh1508 |
Submission Time | 2024-01-21 10:11:08 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
prefixsums.cpp: In function ‘int32_t main()’:
prefixsums.cpp:16:15: error: invalid types ‘long long int[long long int]’ for array subscript
16 | psum[i] = carry;
| ^
prefixsums.cpp:22:21: error: ‘prefixSum’ was not declared in this scope
22 | cout << prefixSum[r];
| ^~~~~~~~~
prefixsums.cpp:25:21: error: ‘prefixSum’ was not declared in this scope
25 | cout << prefixSum[r] - prefixSum[l - 1] << endl;
| ^~~~~~~~~