wall.cpp:19:1: error: 'set' does not name a type; did you mean 'setns'?
19 | set<lli> set1,set2;
| ^~~
| setns
wall.cpp:20:1: error: 'vector' does not name a type
20 | vector<x> sum,res;
| ^~~~~~
wall.cpp: In function 'void buildWall(int, int, int*, int*, int*, int*, int*)':
wall.cpp:27:22: error: 'q' was not declared in this scope
27 | if (op[i] == q) {
| ^
wall.cpp:29:13: error: 'sum' was not declared in this scope
29 | sum.push_back({left[i],1,height[i]});
| ^~~
wall.cpp:34:13: error: 'res' was not declared in this scope; did you mean 'rep'?
34 | res.push_back({left[i],1,height[i]});
| ^~~
| rep
wall.cpp:43:16: error: 'sum' was not declared in this scope
43 | while (sum[cont1].pos == i) {
| ^~~
wall.cpp:47:17: error: 'set1' was not declared in this scope
47 | set1.insert(-(sum[cont1].val));
| ^~~~
wall.cpp:52:27: error: 'val' was not declared in this scope
52 | cant1[sum[val]]--;
| ^~~
wall.cpp:53:49: error: 'set1' was not declared in this scope
53 | if (cant1[sum[cont1].val] == 0) set1.erase(-(sum[cont1].val));
| ^~~~
wall.cpp:61:16: error: 'res' was not declared in this scope; did you mean 'rep'?
61 | while (res[cont2].pos == i) {
| ^~~
| rep
wall.cpp:65:17: error: 'set2' was not declared in this scope
65 | set2.insert(-(res[cont2].val));
| ^~~~
wall.cpp:70:27: error: 'val' was not declared in this scope
70 | cant2[res[val]]--;
| ^~~
wall.cpp:71:49: error: 'set1' was not declared in this scope
71 | if (cant2[res[cont2].val] == 0) set1.erase(-(res[cont2].val));
| ^~~~
wall.cpp:78:17: error: 'set1' was not declared in this scope
78 | a = abs(set1.lower_bound(MIN));
| ^~~~
wall.cpp:79:17: error: 'set2' was not declared in this scope
79 | b = abs(set2.lower_bound(MIN));
| ^~~~
wall.cpp:81:26: error: 'min' was not declared in this scope; did you mean 'std::min'?
81 | finalHeight[i] = min(a,b);
| ^~~
| std::min
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from wall.cpp:2:
/usr/include/c++/9/bits/stl_algo.h:3450:5: note: 'std::min' declared here
3450 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~