0_0_37698584_20007.cpp:1:1: error: 'include' does not name a type
include <bits/stdc++.h>
^
0_0_37698584_20007.cpp: In member function 'void Seg::Up(int)':
0_0_37698584_20007.cpp:10:76: error: 'min' was not declared in this scope
inline void Up(int p) { t[p].ans = min(t[p << 1].ans, t[p << 1 | 1].ans); }
^
0_0_37698584_20007.cpp: In member function 'int Seg::ask(int, int, int)':
0_0_37698584_20007.cpp:27:45: error: 'min' was not declared in this scope
val = min(val, ask(p << 1, l, r));
^
0_0_37698584_20007.cpp:29:49: error: 'min' was not declared in this scope
val = min(val, ask(p << 1 | 1, l, r));
^
0_0_37698584_20007.cpp: At global scope:
0_0_37698584_20007.cpp:57:13: error: 'pair' does not name a type
using pii = pair<int, int>;
^
0_0_37698584_20007.cpp: In function 'int query(int, int)':
0_0_37698584_20007.cpp:60:5: error: 'vector' was not declared in this scope
vector<pii> aa, b, c;
^
0_0_37698584_20007.cpp:60:12: error: 'pii' was not declared in this scope
vector<pii> aa, b, c;
^
0_0_37698584_20007.cpp:60:17: error: 'aa' was not declared in this scope
vector<pii> aa, b, c;
^
0_0_37698584_20007.cpp:60:21: error: 'b' was not declared in this scope
vector<pii> aa, b, c;
^
0_0_37698584_20007.cpp:60:24: error: 'c' was not declared in this scope
vector<pii> aa, b, c;
^
0_0_37698584_20007.cpp:71:31: error: 'reverse' was not declared in this scope
reverse(b.begin(), b.end());
^
0_0_37698584_20007.cpp:82:42: error: 'is_sorted' was not declared in this scope
assert(is_sorted(aa.begin(), aa.end()));
^
0_0_37698584_20007.cpp:82:43: error: 'assert' was not declared in this scope
assert(is_sorted(aa.begin(), aa.end()));
^
0_0_37698584_20007.cpp:85:19: error: unable to deduce 'auto&&' from 'aa'
for (auto v : aa) {
^
0_0_37698584_20007.cpp:86:53: error: 'min' was not declared in this scope
ans = min(ans, t.ask(1, mx + 1, v.first - 1));
^
0_0_37698584_20007.cpp:87:30: error: 'max' was not declared in this scope
mx = max(mx, v.second);
^
0_0_37698584_20007.cpp: In function 'int main()':
0_0_37698584_20007.cpp:92:33: error: 'scanf' was not declared in this scope
while (~scanf("%d%d", &n, &m)) {
^
0_0_37698584_20007.cpp:94:34: error: 'memset' was not declared in this scope
memset(Son, 0, sizeof Son);
^
0_0_37698584_20007.cpp:108:45: error: 'printf' was not declared in this scope
printf("%d\n", ans = query(x, y));
^
|