Problem modulochain
User WouldIWas
Submission Time 2025-05-12 17:53:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

modulochain.cpp: In function ‘int main()’:
modulochain.cpp:7:31: error: expected ‘;’ before ‘long’
7 | int N; cin >> N; cout << "/n"
| ^
| ;
modulochain.cpp:10:10: error: ‘A’ was not declared in this scope
10 | cin >> A[i];
| ^
modulochain.cpp:12:14: error: expected ‘;’ before ‘long’
12 | cout << "/n"
| ^
| ;
modulochain.cpp:16:10: error: ‘A’ was not declared in this scope
16 | sum += A[j] % mod;
| ^
modulochain.cpp:16:17: error: ‘mod’ was not declared in this scope; did you mean ‘modf’?
16 | sum += A[j] % mod;
| ^~~
| modf
modulochain.cpp:21:12: error: ‘A’ was not declared in this scope
21 | cout << ((A[0] % mod) * (A[N-1] % mod)) % mod << " ";
| ^
modulochain