Problem mountains
User MegaG
Submission Time 2026-02-15 13:46:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mountains.cpp: In function ‘int main()’:
mountains.cpp:72:9: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
72 | ans += left[i] * right[i];
| ^~~
| abs
mountains.cpp:75:13: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
75 | cout << ans;
| ^~~
| abs