building.cpp:16:12: error: 'maxn' was not declared in this scope; did you mean 'maxx'?
16 | line L[4 * maxn];
| ^~~~
| maxx
building.cpp: In function 'void add_line(line, int, int, int)':
building.cpp:18:23: error: 'L' was not declared in this scope
18 | if (f(nw, l) >= f(L[v], l) && f(nw, r) >= f(L[v], r))
| ^
building.cpp:20:23: error: 'L' was not declared in this scope
20 | if (f(nw, l) <= f(L[v], l) && f(nw, r) <= f(L[v], r)) {
| ^
building.cpp:25:29: error: 'L' was not declared in this scope
25 | bool lef = f(nw, l) < f(L[v], l);
| ^
building.cpp: In function 'll get(int, int, int, int)':
building.cpp:42:18: error: 'L' was not declared in this scope
42 | return f(L[v], x);
| ^
building.cpp:45:26: error: 'L' was not declared in this scope
45 | return min(f(L[v], x), get(x, 2 * v, l, m));
| ^
building.cpp:48:26: error: 'L' was not declared in this scope
48 | return min(f(L[v], x), get(x, 2 * v + 1, m, r));
| ^
building.cpp: In function 'int main()':
building.cpp:76:9: error: 'L' was not declared in this scope
76 | L[i] = make_pair(inf, inf);
| ^
building.cpp:53:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
53 | freopen(task".inp", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
building.cpp:54:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
54 | freopen(task".out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~