Problem | photo |
---|---|
User | 3lvian |
Submission Time | 2024-02-25 11:30:36 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
photo.cpp: In function ‘int solve(int, int, std::vector<std::vector<int> >&)’:
photo.cpp:39:20: error: ‘INT_MAX’ was not declared in this scope
39 | int min_height = INT_MAX, max_height = INT_MIN;
| ^~~~~~~
photo.cpp:4:1: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
3 | #include <algorithm>
+++ |+#include <climits>
4 |
photo.cpp:42:5: error: ‘max_height’ was not declared in this scope; did you mean ‘min_height’?
42 | max_height = max(max_height, *max_element(heights[i].begin(), heights[i].end()));
| ^~~~~~~~~~
| min_height
photo.cpp:46:18: error: ‘max_height’ was not declared in this scope; did you mean ‘min_height’?
46 | int min_diff = max_height - min_height;
| ^~~~~~~~~~
| min_height