Problem prefixsums
User Hytoh
Submission Time 2023-05-18 12:06:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prefixsums.cpp: In function ‘int main()’:
prefixsums.cpp:10:17: error: invalid types ‘long long int[int]’ for array subscript
10 | cin >> arr[i];
| ^
prefixsums.cpp:14:17: error: invalid types ‘long long int[int]’ for array subscript
14 | prefixsums[j] = prefixsums[j-1] + arr[j-1];
| ^
prefixsums.cpp:14:35: error: invalid types ‘long long int[int]’ for array subscript
14 | prefixsums[j] = prefixsums[j-1] + arr[j-1];
| ^
prefixsums.cpp:14:46: error: invalid types ‘long long int[int]’ for array subscript
14 | prefixsums[j] = prefixsums[j-1] + arr[j-1];
| ^
prefixsums.cpp:20:24: error: invalid types ‘long long int[int]’ for array subscript
20 | sum = prefixsums[q2] - prefixsums[q1-1];
| ^
prefixsums.cpp:20:43: error: invalid types ‘long lon