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

Compile Error

modulochain.cpp: In function ‘int main()’:
modulochain.cpp:8:25: error: ‘n’ was not declared in this scope
8 | vector<long long> nums(n,0);
| ^
modulochain.cpp:10:8: error: expected primary-expression before ‘>’ token
10 | cin>>>nums[i];
| ^
modulochain.cpp:27:20: error: ‘sumOflast’ was not declared in this scope; did you mean ‘sumOfLast’?
27 | cout<<sum<<" " << sumOflast << "\n";
| ^~~~~~~~~
| sumOfLast