Problem modulochain
User xragon
Submission Time 2024-12-04 16:02:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

modulochain.cpp: In function ‘int main()’:
modulochain.cpp:23:105: error: expected ‘}’ at end of input
23 | cout << sum << ' ' << (arr[0] * arr[n-1]) % mod << ' ' << ((arr[0] - sumexceptfirst) % mod + mod) % mod;
| ^
modulochain.cpp:13:24: note: to match this ‘{’
13 | for(int a=0; a<n; a++){
| ^
modulochain.cpp:23:105: error: expected ‘}’ at end of input
23 | cout << sum << ' ' << (arr[0] * arr[n-1]) % mod << ' ' << ((arr[0] - sumexceptfirst) % mod + mod) % mod;
| ^
modulochain.cpp:7:14: note: to match this ‘{’
7 | signed main(){
| ^