hac.cpp:4:14: error: 'pair' in namespace 'std' does not name a template type
4 | typedef std::pair<int, int> pii;
| ^~~~
hac.cpp:1:1: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
+++ |+#include <utility>
1 | #define Loop(x,l,r) for (ll x = (l); x < (ll)(r); ++x)
hac.cpp:5:14: error: 'pair' in namespace 'std' does not name a template type
5 | typedef std::pair<ll , ll > pll;
| ^~~~
hac.cpp:5:9: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
5 | typedef std::pair<ll , ll > pll;
| ^~~
hac.cpp: In function 'void up(int, int, int)':
hac.cpp:19:13: error: 'min' was not declared in this scope
19 | seg[l] = min(seg[l], x);
| ^~~
hac.cpp:24:13: error: 'min' was not declared in this scope
24 | seg[r] = min(seg[r], x);
| ^~~
hac.cpp: In function 'int get(int)':
hac.cpp:36:9: error: 'min' was not declared in this scope
36 | ans = min(ans, seg[i]);
| ^~~
hac.cpp: In function 'int main()':
hac.cpp:49:2: error: 'cin' was not declared in this scope
49 | cin.tie(0) -> sync_with_stdio(false);
| ^~~
hac.cpp:1:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
+++ |+#include <iostream>
1 | #define Loop(x,l,r) for (ll x = (l); x < (ll)(r); ++x)
hac.cpp:50:2: error: 'fill' was not declared in this scope; did you mean 'll'?
50 | fill(seg, seg+2*N, inf);
| ^~~~
| ll
hac.cpp:69:9: error: 'max' was not declared in this scope
69 | ans = max(ans, get(i));
| ^~~
hac.cpp:70:2: error: 'cout' was not declared in this scope
70 | cout << ans << '\n';
| ^~~~
hac.cpp:70:2: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?