Problem | prefixsums |
---|---|
User | ToiletBrIcker |
Submission Time | 2024-06-19 09:06:57 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
prefixsums.cpp: In function ‘int main()’:
prefixsums.cpp:7:2: error: expected initializer before ‘A’
7 | A[0] = 0;
| ^
prefixsums.cpp:10:15: error: ‘A’ was not declared in this scope
10 | std::cin >> A[i]
| ^
prefixsums.cpp:13:3: error: ‘A’ was not declared in this scope
13 | A[y+1] = A[y] + A[y+1]
| ^
prefixsums.cpp:17:16: error: ‘psum’ was not declared in this scope
17 | std::cout << psum[R] - psum[L];
| ^~~~