Problem | modulochain |
---|---|
User | xragon |
Submission Time | 2024-12-04 16:02:14 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
modulochain.cpp: In function ‘int main()’:
modulochain.cpp:23:71: error: ‘sumexcepfirst’ was not declared in this scope; did you mean ‘sumexceptfirst’?
23 | cout << sum << ' ' << (arr[0] * arr[n-1]) % mod << ' ' << ((arr[0] - sumexcepfirst) % mod + mod) % mod;
| ^~~~~~~~~~~~~
| sumexceptfirst
modulochain.cpp:23:104: error: expected ‘}’ at end of input
23 | cout << sum << ' ' << (arr[0] * arr[n-1]) % mod << ' ' << ((arr[0] - sumexcepfirst) % mod + mod) % mod;
| ^
modulochain.cpp:13:24: note: to match this ‘{’
13 | for(int a=0; a<n; a++){
| ^
modulochain.cpp:23:104: error: expected ‘}’ at end of i