worst_reporter2.cpp: In function 'void join(int, int)':
worst_reporter2.cpp:34:15: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
34 | for (auto [h, val]: sub[a])
| ^
worst_reporter2.cpp: In function 'int main()':
worst_reporter2.cpp:79:12: error: 'vecoor' was not declared in this scope
79 | vector<vecoor<int>> roots;
| ^~~~~~
worst_reporter2.cpp:79:22: error: template argument 1 is invalid
79 | vector<vecoor<int>> roots;
| ^~
worst_reporter2.cpp:79:22: error: template argument 2 is invalid
worst_reporter2.cpp:80:11: error: request for member 'reserve' in 'roots', which is of non-class type 'int'
80 | roots.reserve(n);
| ^~~~~~~
worst_reporter2.cpp:82:15: error: request for member 'emplace_back' in 'roots', which is of non-class type 'int'
82 | roots.emplace_back();
| ^~~~~~~~~~~~
worst_reporter2.cpp:83:15: error: request for member 'back' in 'roots', which is of non-class type 'int'
83 | roots.back().emplace_back(i);
| ^~~~
worst_reporter2.cpp:86:19: error: request for member 'back' in 'roots', which is of non-class type 'int'
86 | roots.back().emplace_back(x);
| ^~~~
worst_reporter2.cpp:91:18: error: 'begin' was not declared in this scope; did you mean 'std::begin'?
91 | for (auto R: roots) {
| ^~~~~
| std::begin
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:95,
from worst_reporter2.cpp:1:
/usr/include/c++/10/valarray:1224:5: note: 'std::begin' declared here
1224 | begin(const valarray<_Tp>& __va)
| ^~~~~
worst_reporter2.cpp:91:18: error: 'end' was not declared in this scope; did you mean 'std::end'?
91 | for (auto R: roots) {
| ^~~~~
| std::end
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:95,
from worst_reporter2.cpp:1:
/usr/include/c++/10/valarray:1244:5: note: 'std::end' declared here
1244 | end(const valarray<_Tp>& __va)
| ^~~
worst_reporter2.cpp:98:27: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
98 | for (auto [h, val]: sub[y]) if (h >= H[x]) dp += val;
| ^
worst_reporter2.cpp:104:19: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
104 | for (auto [h, val]: sub[R[0]]) mx += val;
| ^
worst_reporter2.cpp:105:19: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
105 | for (auto [h, val]: best) mx = max(mx, val);
| ^