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

Compile Error

modulochain.cpp: In function ‘int main()’:
modulochain.cpp:11:43: error: expected ‘;’ before ‘arr’
11 | sum=arr[1]%(10*10*10*10*10*10*10*10*10+7)
| ^
| ;
12 | arr[1]=sum;
| ~~~
modulochain.cpp:15:51: error: expected ‘;’ before ‘sum’
15 | arr[i-1]=arr[i-1]%(10*10*10*10*10*10*10*10*10+7)
| ^
| ;
16 | sum=sum+arr[i-1];
| ~~~