wiring.cpp: In function 'll min_total_lenght(std::vector<int>, std::vector<int>)':
wiring.cpp:31:20: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'struct std::pair<int, int>'} has no member named 'begin'
31 | #define all(c) (c).begin(), (c).end()
| ^~~~~
wiring.cpp:75:25: note: in expansion of macro 'all'
75 | int ind = lower_bound(all(v[op]), v[i].first) - v[op];
| ^~~
wiring.cpp:31:33: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'struct std::pair<int, int>'} has no member named 'end'
31 | #define all(c) (c).begin(), (c).end()
| ^~~
wiring.cpp:75:25: note: in expansion of macro 'all'
75 | int ind = lower_bound(all(v[op]), v[i].first) - v[op];
| ^~~
wiring.cpp:78:12: error: 'close' was not declared in this scope; did you mean 'pclose'?
78 | chkmin(close, (ll)abs(pos[op][d] - v[i].x));
| ^~~~~
| pclose
wiring.cpp:78:45: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'struct std::pair<int, int>'} has no member named 'x'
78 | chkmin(close, (ll)abs(pos[op][d] - v[i].x));
| ^
wiring.cpp:81:38: error: 'close' was not declared in this scope; did you mean 'pclose'?
81 | dp[i] = (i == 0 ? 0 : dp[i - 1]) + close;
| ^~~~~
| pclose