| Problem | photo |
|---|---|
| User | wahjsodhowasd |
| Submission Time | 2026-02-19 09:58:12 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
photo.cpp: In function ‘int main()’:
photo.cpp:24:28: error: ‘LLONG_MAX’ was not declared in this scope
24 | long long mn = LLONG_MAX, mx = LLONG_MIN;
| ^~~~~~~~~
photo.cpp:3:1: note: ‘LLONG_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
2 | #include <algorithm>
+++ |+#include <climits>
3 | #include <vector>
photo.cpp:26:30: error: no match for call to ‘(std::vector<std::pair<long long int, long long int> >) (long long int&, std::tuple_element<1, std::pair<const int, long long int> >::type&)’
26 | mn = min(mn,h);
| ^
photo.cpp:27:17: error: ‘mx’ was not declared in this scope; did you mean ‘mn’?
27 | mx = max(mx,h);
| ^~
| mn
photo.cpp:29:13: error: ‘ans’ was not declared in this scope