Problem prefixsums
User ToiletBrIcker
Submission Time 2024-06-19 09:12:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prefixsums.cpp: In function ‘int main()’:
prefixsums.cpp:6:2: error: expected initializer before ‘long’
6 | long long A[N+1];
| ^~~~
prefixsums.cpp:7:2: error: ‘A’ was not declared in this scope
7 | A[0] = 0;
| ^
prefixsums.cpp:13:3: error: ‘psum’ was not declared in this scope
13 | psum[y+1] = psum[y] + A[y+1];
| ^~~~
prefixsums.cpp:17:16: error: ‘psum’ was not declared in this scope
17 | std::cout << psum[R] - psum[L-1] << "\n";
| ^~~~