molecules.cpp: In function 'std::vector<int> find_subset(ll, ll, std::vector<long long int>)':
molecules.cpp:8:25: error: 'sz' was not declared in this scope
8 | for (int i = 0; i < sz(arr); i++)
| ^~
molecules.cpp:9:11: error: 'class std::vector<std::pair<long long int, long long int> >' has no member named 'pb'
9 | v.pb({arr[i], i});
| ^~
molecules.cpp:11:10: error: 'all' was not declared in this scope; did you mean 'std::filesystem::perms::all'?
11 | sort(all(v));
| ^~~
| std::filesystem::perms::all
In file included from /usr/include/c++/10/filesystem:44,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:129,
from molecules.cpp:2:
/usr/include/c++/10/bits/fs_fwd.h:148:7: note: 'std::filesystem::perms::all' declared here
148 | all = 0777,
| ^~~
molecules.cpp:15:25: error: 'sz' was not declared in this scope; did you mean 'st'?
15 | for (int j = 0; j < sz(v); j++) {
| ^~
| st
molecules.cpp:16:19: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type' {aka 'struct std::pair<long long int, long long int>'} has no member named 'f'
16 | s += v[j].f;
| ^
molecules.cpp:18:24: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type' {aka 'struct std::pair<long long int, long long int>'} has no member named 'f'
18 | s -= v[st].f;
| ^
molecules.cpp:24:21: error: 'class std::vector<int>' has no member named 'pb'
24 | lst.pb(v[f].s);
| ^~
molecules.cpp:24:29: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type' {aka 'struct std::pair<long long int, long long int>'} has no member named 's'
24 | lst.pb(v[f].s);
| ^