Problem foodchain
User paaaaaaaaaaaaaaaaaaa
Submission Time 2024-11-07 13:49:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

foodchain.cpp: In function ‘int main()’:
foodchain.cpp:7:5: error: expected initializer before ‘long’
7 | long long x = 1000000009
| ^~~~
foodchain.cpp:10:5: error: expected ‘,’ or ‘;’ before ‘ans’
10 | ans = (ans%x*a%x)%x;
| ^~~
foodchain.cpp:11:16: error: ‘x’ was not declared in this scope
11 | ans = (ans%x*b%x)%x;
| ^
foodchain.cpp:14:18: error: ‘e’ was not declared in this scope
14 | ans = (ans%x*e%x)%x;
| ^