closing.cpp:13:8: error: 'pii' was not declared in this scope
13 | vector<pii> g[nmax];
| ^~~
closing.cpp:13:11: error: template argument 1 is invalid
13 | vector<pii> g[nmax];
| ^
closing.cpp:13:11: error: template argument 2 is invalid
closing.cpp: In function 'void filld(int, int, int*)':
closing.cpp:17:28: error: 'begin' was not declared in this scope
17 | for(auto [x, c] : g[node]) {
| ^
closing.cpp:17:28: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:95,
from closing.cpp:4:
/usr/include/c++/10/valarray:1224:5: note: 'std::begin'
1224 | begin(const valarray<_Tp>& __va)
| ^~~~~
In file included from /usr/include/c++/10/filesystem:46,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:129,
from closing.cpp:4:
/usr/include/c++/10/bits/fs_dir.h:549:3: note: 'std::filesystem::__cxx11::begin'
549 | begin(recursive_directory_iterator __iter) noexcept
| ^~~~~
closing.cpp:17:28: error: 'end' was not declared in this scope
17 | for(auto [x, c] : g[node]) {
| ^
closing.cpp:17:28: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:95,
from closing.cpp:4:
/usr/include/c++/10/valarray:1244:5: note: 'std::end'
1244 | end(const valarray<_Tp>& __va)
| ^~~
In file included from /usr/include/c++/10/filesystem:46,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:129,
from closing.cpp:4:
/usr/include/c++/10/bits/fs_dir.h:554:3: note: 'std::filesystem::__cxx11::end'
554 | end(recursive_directory_iterator) noexcept
| ^~~
closing.cpp: In function 'int separate(int, int)':
closing.cpp:26:11: error: 'pii' was not declared in this scope
26 | vector<pii> s;
| ^~~
closing.cpp:26:14: error: template argument 1 is invalid
26 | vector<pii> s;
| ^
closing.cpp:26:14: error: template argument 2 is invalid
closing.cpp:28:9: error: request for member 'emplace_back' in 's', which is of non-class type 'int'
28 | s.emplace_back(i, 1);
| ^~~~~~~~~~~~
closing.cpp:29:9: error: request for member 'emplace_back' in 's', which is of non-class type 'int'
29 | s.emplace_back(i, 2);
| ^~~~~~~~~~~~
closing.cpp:5:20: error: request for member 'begin' in 's', which is of non-class type 'int'
5 | #define all(x) (x).begin(),(x).end()
| ^~~~~
closing.cpp:31:9: note: in expansion of macro 'all'
31 | sort(all(s), [&](auto a, auto b) {
| ^~~
closing.cpp:5:32: error: request for member 'end' in 's', which is of non-class type 'int'
5 | #define all(x) (x).begin(),(x).end()
| ^~~
closing.cpp:31:9: note: in expansion of macro 'all'
31 | sort(all(s), [&](auto a, auto b) {
| ^~~
closing.cpp:39:22: error: 'begin' was not declared in this scope
39 | for(auto [x, t] : s) {
| ^
closing.cpp:39:22: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:95,
from closing.cpp:4:
/usr/include/c++/10/valarray:1224:5: note: 'std::begin'
1224 | begin(const valarray<_Tp>& __va)
| ^~~~~
In file included from /usr/include/c++/10/filesystem:46,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:129,
from closing.cpp:4:
/usr/include/c++/10/bits/fs_dir.h:549:3: note: 'std::filesystem::__cxx11::begin'
549 | begin(recursive_directory_iterator __iter) noexcept
| ^~~~~
closing.cpp:39:22: error: 'end' was not declared in this scope
39 | for(auto [x, t] : s) {
| ^
closing.cpp:39:22: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:95,
from closing.cpp:4:
/usr/include/c++/10/valarray:1244:5: note: 'std::end'
1244 | end(const valarray<_Tp>& __va)
| ^~~
In file included from /usr/include/c++/10/filesystem:46,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:129,
from closing.cpp:4:
/usr/include/c++/10/bits/fs_dir.h:554:3: note: 'std::filesystem::__cxx11::end'
554 | end(recursive_directory_iterator) noexcept
| ^~~
closing.cpp: In function 'int max_score(int, int, int, long long int, std::vector<int>, std::vector<int>, std::vector<int>)':
closing.cpp:55:15: error: request for member 'emplace_back' in 'g[U.std::vector<int>::operator[](((std::vector<int>::size_type)i))]', which is of non-class type 'int'
55 | g[U[i]].emplace_back(V[i], W[i]);
| ^~~~~~~~~~~~
closing.cpp:56:15: error: request for member 'emplace_back' in 'g[V.std::vector<int>::operator[](((std::vector<int>::size_type)i))]', which is of non-class type 'int'
56 | g[V[i]].emplace_back(U[i], W[i]);
| ^~~~~~~~~~~~