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

Compile Error

prefixsums.cpp:10:1: error: stray ‘`’ in program
10 | ` std::cin >> A[i]
| ^
prefixsums.cpp: In function ‘int main()’:
prefixsums.cpp:7:2: error: expected initializer before ‘A’
7 | A[0] = 0;
| ^
prefixsums.cpp:10:16: 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];
| ^~~~