Problem | modulochain |
---|---|
User | Reverberate |
Submission Time | 2024-12-28 12:34:02 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
modulochain.cpp: In function ‘int main()’:
modulochain.cpp:23:9: error: redeclaration of ‘long long int ans2’
23 | int ans2 = (arr[0] * arr[n-1])%MOD;
| ^~~~
modulochain.cpp:18:19: note: ‘long long int ans2’ previously declared here
18 | int ans1 = 0, ans2, ans3;
| ^~~~
modulochain.cpp:25:31: error: expected ‘)’ before ‘;’ token
25 | for (int i = 1; i < n; i++;){
| ~ ^
| )
modulochain.cpp:25:32: error: expected primary-expression before ‘)’ token
25 | for (int i = 1; i < n; i++;){
| ^