Problem modulochain
User kongmoyu789
Submission Time 2026-07-10 17:38:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

modulochain.cpp: In function ‘int main()’:
modulochain.cpp:18:15: error: ‘i’ was not declared in this scope
18 | sum += nums[i];
| ^
modulochain.cpp:23:2: error: expected ‘,’ or ‘;’ before ‘cout’
23 | cout << product%MOD<< " ";
| ^~~~
modulochain.cpp:25:30: error: ‘num’ was not declared in this scope; did you mean ‘sum’?
25 | long long sumOfLast = sum - num[0];
| ^~~
| sum