Problem horses
User PlayVoltz
Submission Time 2024-07-25 14:11:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

horses.cpp: In function ‘int init(int, int*, int*)’:
horses.cpp:9:80: error: expected ‘;’ before ‘return’
9 | for (int i=0, sum=1; i<n; ++i)sum=(sum*x[i])%MOD, ans=max(ans, (sum*y[i])%MOD)
| ^
| ;
10 | return ans;
| ~~~~~~