Problem mountains
User Vinayak01
Submission Time 2024-12-30 21:51:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mountains.cpp: In function ‘int main()’:
mountains.cpp:15:2: error: ‘result’ was not declared in this scope
15 | result = 0;
| ^~~~~~
mountains.cpp:17:18: error: ‘i’ was not declared in this scope
17 | for(int y =2;i<n+1;y++){
| ^
mountains.cpp:18:3: error: ‘re_x’ was not declared in this scope
18 | re_x = 0;
| ^~~~
mountains.cpp:19:3: error: ‘re_z’ was not declared in this scope
19 | re_z = 0;
| ^~~~
mountains.cpp:37:1: error: expected ‘}’ at end of input
37 | }
| ^
mountains.cpp:6:12: note: to match this ‘{’
6 | int main() {
| ^