Problem | peakfinding |
---|---|
User | Hytoh |
Submission Time | 2023-03-29 16:36:11 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
peakfinding.cpp: In function ‘int main()’:
peakfinding.cpp:7:22: error: ‘n’ was not declared in this scope
7 | int ans = 0, height[n];
| ^
peakfinding.cpp:9:10: error: ‘height’ was not declared in this scope
9 | cin >> height[i];
| ^~~~~~
peakfinding.cpp:13:8: error: ‘height’ was not declared in this scope
13 | sort (height, height + mountains, greater<int>())
| ^~~~~~