Problem foodchain
User NeeNawAmbulance
Submission Time 2023-06-25 09:30:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

foodchain.cpp: In function ‘int main()’:
foodchain.cpp:6:31: error: expected ‘)’ before ‘mod’
6 | ans = ((ans % 100000009) * (i mod 100000009)) mod m;
| ~ ^~~~
| )
foodchain.cpp:6:53: error: expected ‘)’ before ‘;’ token
6 | ans = ((ans % 100000009) * (i mod 100000009)) mod m;
| ~ ^
| )
foodchain.cpp:8:31: error: expected ‘)’ before ‘mod’
8 | ans = ((ans % 100000009) * (i mod 100000009)) mod m;
| ~ ^~~~
| )
foodchain.cpp:8:53: error: expected ‘)’ before ‘;’ token
8 | ans = ((ans % 100000009) * (i mod 100000009)) mod m;
| ~ ^
| )
foodchain.cpp:10:31: error