grader.c: In function 'int main()':
grader.c:15:6: warning: variable 'res' set but not used [-Wunused-but-set-variable]
15 | int res;
| ^~~
wombats.cpp: In function 'void changeH(int, int, int)':
wombats.cpp:69:7: error: 'out' was not declared in this scope
69 | ans(out, a[i], out);
| ^~~
wombats.cpp:69:21: error: 'ans' cannot be used as a function
69 | ans(out, a[i], out);
| ^
wombats.cpp: In function 'void changeV(int, int, int)':
wombats.cpp:76:7: error: 'out' was not declared in this scope
76 | ans(out, a[i], out);
| ^~~
wombats.cpp:76:21: error: 'ans' cannot be used as a function
76 | ans(out, a[i], out);
| ^
wombats.cpp: In function 'void init(int, int, int (*)[200], int (*)[200])':
wombats.cpp:91:28: error: invalid types 'int[int]' for array subscript
91 | for (int j = L[i]; j <= R[i]; ++j) By[j] = i;
| ^
In file included from /usr/include/c++/10/bits/stl_tree.h:63,
from /usr/include/c++/10/set:60,
from wombats.cpp:5:
/usr/include/c++/10/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
wombats.cpp:60:51: required from here
/usr/include/c++/10/bits/stl_algobase.h:281:17: error: '__comp' cannot be used as a function
281 | if (__comp(__b, __a))
| ~~~~~~^~~~~~~~~~