Problem prefixsums
User prxya
Submission Time 2023-11-09 15:25:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prefixsums.cpp:17:25: error: unterminated comment
17 | cout << a[r-1] - a[1-2]/* << " " << a[r-1] << " " << a[l-1] << " " <<
| ^
prefixsums.cpp: In function ‘int32_t main()’:
prefixsums.cpp:12:40: error: expected ‘;’ before ‘:’ token
12 | for(int i = 0; i < N; i++) cin >> a[i]:
| ^
| ;
prefixsums.cpp:13:17: error: ‘i’ was not declared in this scope
13 | for(int i = 1; i < N; i++) a[i] = a[i-1] + a[i]:
| ^
prefixsums.cpp:17:24: error: expected ‘}’ at end of input
17 | cout << a[r-1] - a[1-2]/* << " " << a[r-1] << " " << a[l-1] << " " <<
| ^
prefixsums.cpp:7:15: note: to match this ‘{’
7 | int32_t main(){
| ^