Problem modulochain
User Hytoh
Submission Time 2023-12-28 14:10:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

modulochain.cpp: In function ‘int main()’:
modulochain.cpp:13:25: error: ‘N’ was not declared in this scope
13 | for (int i = 0; i < N; ++i) {
| ^
modulochain.cpp:16:20: error: ‘ar’ was not declared in this scope; did you mean ‘arr’?
16 | int product = (ar[0] * arr[n - 1]) % mod;
| ^~
| arr