Problem prefixsums
User aj
Submission Time 2024-12-05 11:09:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prefixsums.cpp: In function ‘int main()’:
prefixsums.cpp:21:9: error: expected initializer before ‘cin’
21 | cin >> l >> r;
| ^~~
prefixsums.cpp:22:36: error: ‘r’ was not declared in this scope
22 | long long sum = prefix_sum[r] - prefix_sum[l - 1];
| ^