Problem photo
User giaan1231
Submission Time 2024-09-09 17:06:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

photo.cpp: In function ‘int findMinHeightDifference(int, int, std::vector<std::vector<int> >&)’:
photo.cpp:25:21: error: ‘INT_MIN’ was not declared in this scope
25 | int maxHeight = INT_MIN;
| ^~~~~~~
photo.cpp:5:1: note: ‘INT_MIN’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
4 | #include <algorithm>
+++ |+#include <climits>
5 |
photo.cpp:33:19: error: ‘INT_MAX’ was not declared in this scope
33 | int minDiff = INT_MAX;
| ^~~~~~~
photo.cpp:33:19: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
photo.cpp: In function ‘int main()’:
photo.cpp:64:33: error: expected ‘}’ at end of input
64 | cin >> heights[i][j];
| ^
photo.cpp:63:37: note: to match this ‘{’
63 | for (int j = 0; j