Problem prefixsums
User unnatisinghania
Submission Time 2024-05-04 21:58:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prefixsums.cpp: In function ‘int main()’:
prefixsums.cpp:22:16: error: ‘i’ was not declared in this scope
22 | cin >> i >> r;
| ^
prefixsums.cpp:22:21: error: ‘r’ was not declared in this scope
22 | cin >> i >> r;
| ^
prefixsums.cpp: At global scope:
prefixsums.cpp:28:5: error: expected unqualified-id before ‘return’
28 | return 0;
| ^~~~~~
prefixsums.cpp:29:1: error: expected declaration before ‘}’ token
29 | }
| ^