Problem prefixsums
User nguyendinhanh1508
Submission Time 2024-01-21 10:12:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prefixsums.cpp: In function ‘int32_t main()’:
prefixsums.cpp:16:15: error: invalid types ‘long long int[long long int]’ for array subscript
16 | psum[i] = carry;
| ^
prefixsums.cpp:22:27: error: invalid types ‘long long int[long long int]’ for array subscript
22 | cout << psum[r];
| ^
prefixsums.cpp:25:27: error: invalid types ‘long long int[long long int]’ for array subscript
25 | cout << psum[r] - psum[l - 1] << endl;
| ^
prefixsums.cpp:25:41: error: invalid types ‘long long int[long long int]’ for array subscript
25 | cout << psum[r] - psum[l - 1] << endl;
| ^