| Problem | mountainjourney2 |
|---|---|
| User | Zubair |
| Submission Time | 2026-06-26 16:10:57 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
mountainjourney2.cpp: In function ‘int main()’:
mountainjourney2.cpp:6:12: error: expected initializer before ‘h’
6 | int N, M h;
| ^
mountainjourney2.cpp:7:14: error: ‘M’ was not declared in this scope
7 | if(cin>>N>>M);
| ^
mountainjourney2.cpp:8:19: error: ‘M’ was not declared in this scope
8 | for(int i=0;i<N+M;i++){
| ^
mountainjourney2.cpp:9:9: error: ‘h’ was not declared in this scope
9 | cin>>h[i]
| ^
mountainjourney2.cpp:11:12: error: ‘M’ was not declared in this scope
11 | if(N==1&&M==1){
| ^
mountainjourney2.cpp:12:14: error: ‘h’ was not declared in this scope
12 | cout<<abs(h[0]-h[1])<"\n"
| ^