Problem | modulochain |
---|---|
User | syy |
Submission Time | 2023-01-18 09:42:59 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
modulochain.cpp: In function ‘int main()’:
modulochain.cpp:13:31: error: ‘sum’ was not declared in this scope
13 | for (int i = 2; i <= n; i++) sum = (sum + a[i]) % mod;
| ^~~
modulochain.cpp:14:18: error: ‘sum’ was not declared in this scope
14 | cout << (a[1] + sum) % mod << " " << (a[1] * a[n]) % mod << " " << (a[1] - sum + mod) % mod;
| ^~~