Problem modulochain
User asbx
Submission Time 2023-11-08 15:10:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

modulochain.cpp: In function ‘int main()’:
modulochain.cpp:10:13: error: expected ‘;’ before ‘sum’
10 | cin>>arr[1]
| ^
| ;
11 | sum=arr[1]%(10*10*10*10*10*10*10*10*10+7)
| ~~~
modulochain.cpp:13:15: error: ‘i’ was not declared in this scope
13 | for(int i=2; i<=n; i++){
| ^