| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1343072 | mehrzad | 축제 (IOI25_festival) | C++17 | 컴파일 에러 | 0 ms | 0 KiB |
cpp
#include "festival.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef __int128 i128;
const ll INF = 2'000'000'000'000'000'000LL; // 2e18, safely above any relevant sum
struct Coupon {
int idx;
int P;
int T;
ll a, d; // a = T, d = T*P
i128 num, den; // for sorting: num = P * T, den = T-1 (as i128)
};
struct Type1 {
int idx;
ll P;
};
struct Node {
int m; // number of taken type>1 coupons
ll B; // current budget = M * (A - S0)
int prev; // index of previous node in nodes vector
int last_idx; // index of the coupon (original) that led to this node, -1 for none
};
vector<int> max_coupons(int A, vector<int> P, vector<int> T) {
int N = P.size();
vector<Coupon> type2;
vector<Type1> type1;
for (int i = 0; i < N; ++i) {
if (T[i] == 1) {
type1.push_back({i, P[i]});
} else {
type2.push_back({i, P[i], T[i], (ll)T[i], (ll)T[i] * P[i]});
type2.back().num = (i128)P[i] * T[i];
type2.back().den = T[i] - 1;
}
}
// sort type2 by key = (P*T)/(T-1) increasing
sort(type2.begin(), type2.end(), [](const Coupon& x, const Coupon& y) {
i128 left = x.num * y.den;
i128 right = y.num * x.den;
if (left != right) return left < right;
// break ties by T descending (higher multiplier first) – not critical
return x.T > y.T;
});
// sort type1 by price ascending (optimal for buying after all type2)
sort(type1.begin(), type1.end(), [](const Type1& a, const Type1& b) {
return a.P < b.P;
});
// prefix sums of type1 prices
vector<ll> pref(type1.size() + 1, 0);
for (size_t i = 0; i < type1.size(); ++i)
pref[i+1] = pref[i] + type1[i].P;
// DP over type2 coupons using Pareto frontier
vector<Node> nodes;
nodes.push_back({0, A, -1, -1}); // initial state (taken 0, budget A)
vector<int> frontier = {0}; // indices of Pareto-optimal states
for (const Coupon& cp : type2) {
vector<int> new_candidates;
for (int idx : frontier) {
const Node& cur = nodes[idx];
if (cur.B >= cp.P) {
ll newB;
if (cur.B > INF / cp.a) {
newB = INF; // cap too large values
} else {
i128 tmp = (i128)cp.a * cur.B - cp.d;
newB = (tmp > INF) ? INF : (ll)tmp;
}
nodes.push_back({cur.m + 1, newB, idx, cp.idx});
new_candidates.push_back(nodes.size() - 1);
}
}
// combine old frontier and new candidates, then keep only Pareto-optimal states
vector<int> all = frontier;
all.insert(all.end(), new_candidates.begin(), new_candidates.end());
// sort by m ascending, then by B descending (so that for equal m we keep the highest B)
sort(all.begin(), all.end(), [&](int i, int j) {
if (nodes[i].m != nodes[j].m) return nodes[i].m < nodes[j].m;
return nodes[i].B > nodes[j].B;
});
// keep only one state per m (the one with highest B)
vector<int> unique_m;
for (int i : all) {
if (unique_m.empty() || nodes[i].m != nodes[unique_m.back()].m)
unique_m.push_back(i);
}
// now keep only points with strictly decreasing B as m increases
vector<int> new_frontier;
for (int i : unique_m) {
while (!new_frontier.empty() && nodes[i].B >= nodes[new_frontier.back()].B)
new_frontier.pop_back();
new_frontier.push_back(i);
}
frontier = move(new_frontier);
}
// find the best state (max total coupons)
ll best_total = -1;
int best_node = -1;
for (int idx : frontier) {
const Node& nd = nodes[idx];
int t = upper_bound(pref.begin(), pref.end(), nd.B) - pref.begin() - 1;
ll total = nd.m + t;
if (total > best_total) {
best_total = total;
best_node = idx;
}
}
// reconstruction: first build list of taken type2 in reverse order
vector<int> answer;
int cur = best_node;
while (cur != -1) {
if (nodes[cur].last_idx != -1)
answer.push_back(nodes[cur].last_idx);
cur = nodes[cur].prev;
}
// answer now contains taken type2 in reverse chronological order; reverse it
reverse(answer.begin(), answer.end());
// add the smallest type1 coupons
const Node& best = nodes[best_node];
int t = upper_bound(pref.begin(), pref.end(), best.B) - pref.begin() - 1;
for (int i = 0; i < t; ++i)
answer.push_back(type1[i].idx);
return answer;
}컴파일 시 표준 에러 (stderr) 메시지
festival.cpp:1:1: error: 'cpp' does not name a type
1 | cpp
| ^~~
In file included from /usr/include/c++/13/bits/stl_algobase.h:62,
from /usr/include/c++/13/vector:62,
from festival.h:1,
from festival.cpp:2:
/usr/include/c++/13/ext/type_traits.h:164:35: error: 'constexpr const bool __gnu_cxx::__is_null_pointer' redeclared as different kind of entity
164 | __is_null_pointer(std::nullptr_t)
| ^
/usr/include/c++/13/ext/type_traits.h:159:5: note: previous declaration 'template<class _Type> constexpr bool __gnu_cxx::__is_null_pointer(_Type)'
159 | __is_null_pointer(_Type)
| ^~~~~~~~~~~~~~~~~
/usr/include/c++/13/ext/type_traits.h:164:26: error: 'nullptr_t' is not a member of 'std'
164 | __is_null_pointer(std::nullptr_t)
| ^~~~~~~~~
In file included from /usr/include/c++/13/bits/stl_pair.h:60,
from /usr/include/c++/13/bits/stl_algobase.h:64:
/usr/include/c++/13/type_traits:275:27: error: 'size_t' has not been declared
275 | template <typename _Tp, size_t = sizeof(_Tp)>
| ^~~~~~
/usr/include/c++/13/type_traits:510:26: error: 'std::size_t' has not been declared
510 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/13/type_traits:511:25: error: '_Size' was not declared in this scope
511 | struct is_array<_Tp[_Size]>
| ^~~~~
/usr/include/c++/13/type_traits:511:31: error: template argument 1 is invalid
511 | struct is_array<_Tp[_Size]>
| ^
/usr/include/c++/13/type_traits:617:33: error: 'nullptr_t' is not a member of 'std'
617 | struct is_null_pointer<std::nullptr_t>
| ^~~~~~~~~
/usr/include/c++/13/type_traits:617:42: error: template argument 1 is invalid
617 | struct is_null_pointer<std::nullptr_t>
| ^
/usr/include/c++/13/type_traits:621:48: error: template argument 1 is invalid
621 | struct is_null_pointer<const std::nullptr_t>
| ^
/usr/include/c++/13/type_traits:625:51: error: template argument 1 is invalid
625 | struct is_null_pointer<volatile std::nullptr_t>
| ^
/usr/include/c++/13/type_traits:629:57: error: template argument 1 is invalid
629 | struct is_null_pointer<const volatile std::nullptr_t>
| ^
/usr/include/c++/13/type_traits:914:26: error: 'size_t' has not been declared
914 | template<typename _Tp, size_t _Size>
| ^~~~~~
/usr/include/c++/13/type_traits:915:40: error: '_Size' was not declared in this scope
915 | struct __is_array_known_bounds<_Tp[_Size]>
| ^~~~~
/usr/include/c++/13/type_traits:915:46: error: template argument 1 is invalid
915 | struct __is_array_known_bounds<_Tp[_Size]>
| ^
/usr/include/c++/13/type_traits:1348:37: error: 'size_t' is not a member of 'std'
1348 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^~~~~~
/usr/include/c++/13/type_traits:1348:57: error: template argument 1 is invalid
1348 | : public integral_constant<std::size_t, alignof(_Tp)>
| ^
/usr/include/c++/13/type_traits:1348:57: note: invalid template non-type parameter
/usr/include/c++/13/type_traits:1357:37: error: 'size_t' is not a member of 'std'
1357 | : public integral_constant<std::size_t, 0> { };
| ^~~~~~
/usr/include/c++/13/type_traits:1357:46: error: template argument 1 is invalid
1357 | : public integral_constant<std::size_t, 0> { };
| ^
/usr/include/c++/13/type_traits:1357:46: note: invalid template non-type parameter
/usr/include/c++/13/type_traits:1359:26: error: 'std::size_t' has not been declared
1359 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/13/type_traits:1360:21: error: '_Size' was not declared in this scope
1360 | struct rank<_Tp[_Size]>
| ^~~~~
/usr/include/c++/13/type_traits:1360:27: error: template argument 1 is invalid
1360 | struct rank<_Tp[_Size]>
| ^
/usr/include/c++/13/type_traits:1361:37: error: 'size_t' is not a member of 'std'
1361 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
/usr/include/c++/13/type_traits:1361:65: error: template argument 1 is invalid
1361 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/include/c++/13/type_traits:1361:65: note: invalid template non-type parameter
/usr/include/c++/13/type_traits:1365:37: error: 'size_t' is not a member of 'std'
1365 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^~~~~~
/usr/include/c++/13/type_traits:1365:65: error: template argument 1 is invalid
1365 | : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { };
| ^
/usr/include/c++/13/type_traits:1365:65: note: invalid template non-type parameter
/usr/include/c++/13/type_traits:1370:32: error: 'size_t' was not declared in this scope
1370 | : public integral_constant<size_t, 0> { };
| ^~~~~~
/usr/include/c++/13/type_traits:1:1: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
+++ |+#include <cstddef>
1 | // C++11 <type_traits> -*- C++ -*-
/usr/include/c++/13/type_traits:1370:41: error: template argument 1 is invalid
1370 | : public integral_constant<size_t, 0> { };
| ^
/usr/include/c++/13/type_traits:1370:41: note: invalid template non-type parameter
/usr/include/c++/13/type_traits:1372:26: error: 'size_t' has not been declared
1372 | template<typename _Tp, size_t _Size>
| ^~~~~~
/usr/include/c++/13/type_traits:1373:23: error: '_Size' was not declared in this scope
1373 | struct extent<_Tp[_Size], 0>
| ^~~~~
/usr/include/c++/13/type_traits:1373:32: error: template argument 1 is invalid
1373 | struct extent<_Tp[_Size], 0>
| ^
/usr/include/c++/13/type_traits:1374:32: error: 'size_t' was not declared in this scope
1374 | : public integral_constant<size_t, _Size> { };
| ^~~~~~
/usr/include/c++/13/type_traits:1374:32: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/13/type_traits:1374:40: error: '_Size' was not declared in this scope
1374 | : public integral_constant<size_t, _Size> { };
| ^~~~~
/usr/include/c++/13/type_traits:1374:45: error: template argument 1 is invalid
1374 | : public integral_constant<size_t, _Size> { };
| ^
/usr/include/c++/13/type_traits:1374:45: error: template argument 2 is invalid
/usr/include/c++/13/type_traits:1376:42: error: 'size_t' has not been declared
1376 | template<typename _Tp, unsigned _Uint, size_t _Size>
| ^~~~~~
/usr/include/c++/13/type_traits:1377:23: error: '_Size' was not declared in this scope
1377 | struct extent<_Tp[_Size], _Uint>
| ^~~~~
/usr/include/c++/13/type_traits:1377:36: error: template argument 1 is invalid
1377 | struct extent<_Tp[_Size], _Uint>
| ^
/usr/include/c++/13/type_traits:1382:32: error: 'size_t' was not declared in this scope
1382 | : public integral_constant<size_t, 0> { };
| ^~~~~~
/usr/include/c++/13/type_traits:1382:32: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/13/type_traits:1382:41: error: template argument 1 is invalid
1382 | : public integral_constant<size_t, 0> { };
| ^
/usr/include/c++/13/type_traits:1382:41: note: invalid template non-type parameter
/usr/include/c++/13/type_traits:1764:26: error: 'size_t' does not name a type
1764 | { static constexpr size_t __size = sizeof(_Tp); };
| ^~~~~~
/usr/include/c++/13/type_traits:1764:26: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/13/type_traits:1766:14: error: 'size_t' has not been declared
1766 | template<size_t _Sz, typename _Tp, bool = (_Sz <= _Tp::__size)>
| ^~~~~~
/usr/include/c++/13/type_traits:1766:48: error: '_Sz' was not declared in this scope
1766 | template<size_t _Sz, typename _Tp, bool = (_Sz <= _Tp::__size)>
| ^~~
/usr/include/c++/13/type_traits:1767:14: error: no default argument for '_Tp'
1767 | struct __select;
| ^~~~~~~~
/usr/include/c++/13/type_traits:1769:14: error: 'size_t' has not been declared
1769 | template<size_t _Sz, typename _Uint, typename... _UInts>
| ^~~~~~
/usr/include/c++/13/type_traits:1770:23: error: '_Sz' was not declared in this scope
1770 | struct __select<_Sz, _List<_Uint, _UInts...>, true>
| ^~~
/usr/include/c++/13/type_traits:1770:57: error: template argument 1 is invalid
1770 | struct __select<_Sz, _List<_Uint, _UInts...>, true>
| ^
/usr/include/c++/13/type_traits:1773:14: error: 'size_t' has not been declared
1773 | template<size_t _Sz, typename _Uint, typename... _UInts>
| ^~~~~~
/usr/include/c++/13/type_traits:1774:23: error: '_Sz' was not declared in this scope
1774 | struct __select<_Sz, _List<_Uint, _UInts...>, false>
| ^~~
/usr/include/c++/13/type_traits:1774:58: error: template argument 1 is invalid
1774 | struct __select<_Sz, _List<_Uint, _UInts...>, false>
| ^
/usr/include/c++/13/type_traits:1775:18: error: '_Sz' was not declared in this scope
1775 | : __select<_Sz, _List<_UInts...>>
| ^~~
/usr/include/c++/13/type_traits:1775:38: error: template argument 1 is invalid
1775 | : __select<_Sz, _List<_UInts...>>
| ^~
/usr/include/c++/13/type_traits:1766:60: error: '__size' is not a member of 'std::__make_unsigned_selector_base::_List<unsigned char, short unsigned int, unsigned int, long unsigned int, long long unsigned int>'
1766 | template<size_t _Sz, typename _Tp, bool = (_Sz <= _Tp::__size)>
| ^~~~~~
/usr/include/c++/13/type_traits:1788:68: error: template argument 3 is invalid
1788 | using __unsigned_type = typename __select<sizeof(_Tp), _UInts>::__type;
| ^
/usr/include/c++/13/type_traits:1792:47: error: '__unsigned_type' was not declared in this scope
1792 | = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type;
| ^~~~~~~~~~~~~~~
/usr/include/c++/13/type_traits:1792:62: error: template argument 2 is invalid
1792 | = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type;
| ^
/usr/include/c++/13/type_traits:1803:68: error: '__type' in 'class std::__make_unsigned_selector<wchar_t, false, true>' does not name a type
1803 | = typename __make_unsigned_selector<wchar_t, false, true>::__type;
| ^~~~~~
/usr/include/c++/13/type_traits:1819:69: error: '__type' in 'class std::__make_unsigned_selector<char16_t, false, true>' does not name a type
1819 | = typename __make_unsigned_selector<char16_t, false, true>::__type;
| ^~~~~~
/usr/include/c++/13/type_traits:1826:69: error: '__type' in 'class std::__make_unsigned_selector<char32_t, false, true>' does not name a type
1826 | = typename __make_unsigned_selector<char32_t, false, true>::__type;
| ^~~~~~
/usr/include/c++/13/type_traits: In instantiation of 'class std::__make_unsigned_selector<wchar_t, true, false>':
/usr/include/c++/13/type_traits:1921:62: required from 'class std::__make_signed_selector<wchar_t, false, true>'
/usr/include/c++/13/type_traits:1935:57: required from here
/usr/include/c++/13/type_traits:1749:13: error: no type named '__type' in 'struct std::__make_unsigned<wchar_t>'
1749 | using __unsigned_type
| ^~~~~~~~~~~~~~~
/usr/include/c++/13/type_traits:1753:13: error: no type named '__type' in 'struct std::__make_unsigned<wchar_t>'
1753 | using __type
| ^~~~~~
/usr/include/c++/13/type_traits:1935:66: error: invalid combination of multiple type-specifiers
1935 | = typename __make_signed_selector<wchar_t, false, true>::__type;
| ^~~~~~
/usr/include/c++/13/type_traits: In instantiation of 'class std::__make_unsigned_selector<char16_t, true, false>':
/usr/include/c++/13/type_traits:1921:62: required from 'class std::__make_signed_selector<char16_t, false, true>'
/usr/include/c++/13/type_traits:1951:58: required from here
/usr/include/c++/13/type_traits:1749:13: error: no type named '__type' in 'struct std::__make_unsigned<char16_t>'
1749 | using __unsigned_type
| ^~~~~~~~~~~~~~~
/usr/include/c++/13/type_traits:1753:13: error: no type named '__type' in 'struct std::__make_unsigned<char16_t>'
1753 | using __type
| ^~~~~~
/usr/include/c++/13/type_traits:1951:67: error: invalid combination of multiple type-specifiers
1951 | = typename __make_signed_selector<char16_t, false, true>::__type;
| ^~~~~~
/usr/include/c++/13/type_traits: In instantiation of 'class std::__make_unsigned_selector<char32_t, true, false>':
/usr/include/c++/13/type_traits:1921:62: required from 'class std::__make_signed_selector<char32_t, false, true>'
/usr/include/c++/13/type_traits:1958:58: required from here
/usr/include/c++/13/type_traits:1749:13: error: no type named '__type' in 'struct std::__make_unsigned<char32_t>'
1749 | using __unsigned_type
| ^~~~~~~~~~~~~~~
/usr/include/c++/13/type_traits:1753:13: error: no type named '__type' in 'struct std::__make_unsigned<char32_t>'
1753 | using __type
| ^~~~~~
/usr/include/c++/13/type_traits:1958:67: error: invalid combination of multiple type-specifiers
1958 | = typename __make_signed_selector<char32_t, false, true>::__type;
| ^~~~~~
/usr/include/c++/13/type_traits:1993:26: error: 'std::size_t' has not been declared
1993 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/13/type_traits:1994:30: error: '_Size' was not declared in this scope
1994 | struct remove_extent<_Tp[_Size]>
| ^~~~~
/usr/include/c++/13/type_traits:1994:36: error: template argument 1 is invalid
1994 | struct remove_extent<_Tp[_Size]>
| ^
/usr/include/c++/13/type_traits:2006:26: error: 'std::size_t' has not been declared
2006 | template<typename _Tp, std::size_t _Size>
| ^~~
/usr/include/c++/13/type_traits:2007:35: error: '_Size' was not declared in this scope
2007 | struct remove_all_extents<_Tp[_Size]>
| ^~~~~
/usr/include/c++/13/type_traits:2007:41: error: template argument 1 is invalid
2007 | struct remove_all_extents<_Tp[_Size]>
| ^
/usr/include/c++/13/type_traits:2072:12: error: 'std::size_t' has not been declared
2072 | template<std::size_t _Len>
| ^~~
/usr/include/c++/13/type_traits:2077:30: error: '_Len' was not declared in this scope
2077 | unsigned char __data[_Len];
| ^~~~
/usr/include/c++/13/type_traits:2095:12: error: 'std::size_t' has not been declared
2095 | template<std::size_t _Len, std::size_t _Align =
| ^~~
/usr/include/c++/13/type_traits:2095:30: error: 'std::size_t' has not been declared
2095 | template<std::size_t _Len, std::size_t _Align =
| ^~~
/usr/include/c++/13/type_traits:2096:55: error: '_Len' was not declared in this scope
2096 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^~~~
/usr/include/c++/13/type_traits:2096:59: error: template argument 1 is invalid
2096 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^
/usr/include/c++/13/type_traits:2103:30: error: '_Len' was not declared in this scope
2103 | unsigned char __data[_Len];
| ^~~~
/usr/include/c++/13/type_traits:2104:44: error: '_Align' was not declared in this scope
2104 | struct __attribute__((__aligned__((_Align)))) { } __align;
| ^~~~~~
/usr/include/c++/13/type_traits:2111:20: error: 'size_t' does not name a type
2111 | static const size_t _S_alignment = 0;
| ^~~~~~
/usr/include/c++/13/type_traits:2111:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/13/type_traits:2112:20: error: 'size_t' does not name a type
2112 | static const size_t _S_size = 0;
| ^~~~~~
/usr/include/c++/13/type_traits:2112:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/13/type_traits:2118:20: error: 'size_t' does not name a type
2118 | static const size_t _S_alignment =
| ^~~~~~
/usr/include/c++/13/type_traits:2118:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/13/type_traits:2121:20: error: 'size_t' does not name a type
2121 | static const size_t _S_size =
| ^~~~~~
/usr/include/c++/13/type_traits:2121:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/13/type_traits:2141:13: error: 'size_t' has not been declared
2141 | template <size_t _Len, typename... _Types>
| ^~~~~~
/usr/include/c++/13/type_traits:2150:20: error: 'size_t' does not name a type
2150 | static const size_t _S_len = _Len > __strictest::_S_size
| ^~~~~~
/usr/include/c++/13/type_traits:2150:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/13/type_traits:2154:20: error: 'size_t' does not name a type
2154 | static const size_t alignment_value = __strictest::_S_alignment;
| ^~~~~~
/usr/include/c++/13/type_traits:2154:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/13/type_traits:2156:40: error: '_S_len' was not declared in this scope
2156 | typedef typename aligned_storage<_S_len, alignment_value>::type type;
| ^~~~~~
/usr/include/c++/13/type_traits:2156:48: error: 'alignment_value' was not declared in this scope; did you mean 'alignment_of'?
2156 | typedef typename aligned_storage<_S_len, alignment_value>::type type;
| ^~~~~~~~~~~~~~~
| alignment_of
/usr/include/c++/13/type_traits:2156:63: error: template argument 1 is invalid
2156 | typedef typename aligned_storage<_S_len, alignment_value>::type type;
| ^
/usr/include/c++/13/type_traits:2156:63: error: template argument 2 is invalid
/usr/include/c++/13/type_traits:2159:13: error: 'size_t' has not been declared
2159 | template <size_t _Len, typename... _Types>
| ^~~~~~
/usr/include/c++/13/type_traits:2160:11: error: 'size_t' does not name a type
2160 | const size_t aligned_union<_Len, _Types...>::alignment_value;
| ^~~~~~
/usr/include/c++/13/type_traits:2160:11: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/13/type_traits:2174:26: error: 'size_t' has not been declared
2174 | template<typename _Up, size_t _Nm>
| ^~~~~~
/usr/include/c++/13/type_traits:2175:33: error: '_Nm' was not declared in this scope
2175 | struct __decay_selector<_Up[_Nm]>
| ^~~
/usr/include/c++/13/type_traits:2175:37: error: template argument 1 is invalid
2175 | struct __decay_selector<_Up[_Nm]>
| ^
/usr/include/c++/13/type_traits:2596:12: error: 'size_t' has not been declared
2596 | template<size_t _Len, size_t _Align =
| ^~~~~~
/usr/include/c++/13/type_traits:2596:25: error: 'size_t' has not been declared
2596 | template<size_t _Len, size_t _Align =
| ^~~~~~
/usr/include/c++/13/type_traits:2597:56: error: '_Len' was not declared in this scope
2597 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^~~~
/usr/include/c++/13/type_traits:2597:60: error: template argument 1 is invalid
2597 | __alignof__(typename __aligned_storage_msa<_Len>::__type)>
| ^
/usr/include/c++/13/type_traits:2598:78: error: '_Len' was not declared in this scope
2598 | using aligned_storage_t _GLIBCXX23_DEPRECATED = typename aligned_storage<_Len, _Align>::type;
| ^~~~
/usr/include/c++/13/type_traits:2598:84: error: '_Align' was not declared in this scope
2598 | using aligned_storage_t _GLIBCXX23_DEPRECATED = typename aligned_storage<_Len, _Align>::type;
| ^~~~~~
/usr/include/c++/13/type_traits:2598:90: error: template argument 1 is invalid
2598 | using aligned_storage_t _GLIBCXX23_DEPRECATED = typename aligned_storage<_Len, _Align>::type;
| ^
/usr/include/c++/13/type_traits:2598:90: error: template argument 2 is invalid
/usr/include/c++/13/type_traits:2600:13: error: 'size_t' has not been declared
2600 | template <size_t _Len, typename... _Types>
| ^~~~~~
/usr/include/c++/13/type_traits:2601:74: error: '_Len' was not declared in this scope
2601 | using aligned_union_t _GLIBCXX23_DEPRECATED = typename aligned_union<_Len, _Types...>::type;
| ^~~~
/usr/include/c++/13/type_traits:2601:89: error: template argument 1 is invalid
2601 | using aligned_union_t _GLIBCXX23_DEPRECATED = typename aligned_union<_Len, _Types...>::type;
| ^
/usr/include/c++/13/type_traits:2728:26: error: 'size_t' has not been declared
2728 | template<typename _Tp, size_t _Nm>
| ^~~~~~
/usr/include/c++/13/type_traits:2732:21: error: '_Nm' was not declared in this scope
2732 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/usr/include/c++/13/type_traits:2732:24: error: 'template<class _Tp, <declaration error> > std::__enable_if_t<std::__is_swappable<_Tp>::value> std::swap' conflicts with a previous declaration
2732 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^
/usr/include/c++/13/type_traits:2724:5: note: previous declaration 'std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&)'
2724 | swap(_Tp&, _Tp&)
| ^~~~
/usr/include/c++/13/type_traits:2732:16: error: '__a' was not declared in this scope
2732 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/usr/include/c++/13/type_traits:2732:21: error: '_Nm' was not declared in this scope
2732 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/usr/include/c++/13/type_traits:2732:33: error: '__b' was not declared in this scope
2732 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/usr/include/c++/13/type_traits:2732:38: error: '_Nm' was not declared in this scope
2732 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/usr/include/c++/13/type_traits:2732:43: error: expected ';' before 'noexcept'
2732 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^
| ;
2733 | noexcept(__is_nothrow_swappable<_Tp>::value);
| ~~~~~~~~
/usr/include/c++/13/type_traits:3168:25: error: 'size_t' has not been declared
3168 | template <typename _Tp, size_t _Num>
| ^~~~~~
/usr/include/c++/13/type_traits:3169:40: error: '_Num' was not declared in this scope
3169 | inline constexpr bool is_array_v<_Tp[_Num]> = true;
| ^~~~
/usr/include/c++/13/type_traits:3169:25: error: template argument 1 is invalid
3169 | inline constexpr bool is_array_v<_Tp[_Num]> = true;
| ^~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/type_traits:3169:25: error: template-id 'is_array_v<<expression error> >' for 'std::is_array_v' does not match any template declaration
/usr/include/c++/13/type_traits:3165:25: note: candidate is: 'template<class _Tp> constexpr const bool std::is_array_v<_Tp>'
3165 | inline constexpr bool is_array_v = false;
| ^~~~~~~~~~
/usr/include/c++/13/type_traits:3331:20: error: 'size_t' does not name a type
3331 | inline constexpr size_t alignment_of_v = alignment_of<_Tp>::value;
| ^~~~~~
/usr/include/c++/13/type_traits:3331:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/13/type_traits:3334:20: error: 'size_t' does not name a type
3334 | inline constexpr size_t rank_v = 0;
| ^~~~~~
/usr/include/c++/13/type_traits:3334:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/13/type_traits:3335:25: error: 'size_t' has not been declared
3335 | template <typename _Tp, size_t _Size>
| ^~~~~~
/usr/include/c++/13/type_traits:3336:20: error: 'size_t' does not name a type
3336 | inline constexpr size_t rank_v<_Tp[_Size]> = 1 + rank_v<_Tp>;
| ^~~~~~
/usr/include/c++/13/type_traits:3336:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/13/type_traits:3338:20: error: 'size_t' does not name a type
3338 | inline constexpr size_t rank_v<_Tp[]> = 1 + rank_v<_Tp>;
| ^~~~~~
/usr/include/c++/13/type_traits:3338:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/13/type_traits:3341:20: error: 'size_t' does not name a type
3341 | inline constexpr size_t extent_v = 0;
| ^~~~~~
/usr/include/c++/13/type_traits:3341:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/13/type_traits:3342:25: error: 'size_t' has not been declared
3342 | template <typename _Tp, size_t _Size>
| ^~~~~~
/usr/include/c++/13/type_traits:3343:20: error: 'size_t' does not name a type
3343 | inline constexpr size_t extent_v<_Tp[_Size], 0> = _Size;
| ^~~~~~
/usr/include/c++/13/type_traits:3343:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/13/type_traits:3344:40: error: 'size_t' has not been declared
3344 | template <typename _Tp, unsigned _Idx, size_t _Size>
| ^~~~~~
/usr/include/c++/13/type_traits:3345:20: error: 'size_t' does not name a type
3345 | inline constexpr size_t extent_v<_Tp[_Size], _Idx> = extent_v<_Tp, _Idx - 1>;
| ^~~~~~
/usr/include/c++/13/type_traits:3345:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/13/type_traits:3347:20: error: 'size_t' does not name a type
3347 | inline constexpr size_t extent_v<_Tp[], 0> = 0;
| ^~~~~~
/usr/include/c++/13/type_traits:3347:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/13/type_traits:3349:20: error: 'size_t' does not name a type
3349 | inline constexpr size_t extent_v<_Tp[], _Idx> = extent_v<_Tp, _Idx - 1>;
| ^~~~~~
/usr/include/c++/13/type_traits:3349:20: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
In file included from /usr/include/c++/13/bits/stl_pair.h:61:
/usr/include/c++/13/bits/move.h:205:26: error: 'size_t' has not been declared
205 | template<typename _Tp, size_t _Nm>
| ^~~~~~
/usr/include/c++/13/bits/move.h:213:21: error: '_Nm' was not declared in this scope
213 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/usr/include/c++/13/bits/move.h:213:24: error: 'template<class _Tp, <declaration error> > typename std::enable_if<std::__is_swappable<_Tp>::value, void>::type std::swap' conflicts with a previous declaration
213 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^
/usr/include/c++/13/bits/move.h:189:5: note: previous declaration 'std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&)'
189 | swap(_Tp& __a, _Tp& __b)
| ^~~~
/usr/include/c++/13/bits/move.h:213:16: error: '__a' was not declared in this scope
213 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/usr/include/c++/13/bits/move.h:213:21: error: '_Nm' was not declared in this scope
213 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/usr/include/c++/13/bits/move.h:213:33: error: '__b' was not declared in this scope
213 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/usr/include/c++/13/bits/move.h:213:38: error: '_Nm' was not declared in this scope
213 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^~~
/usr/include/c++/13/bits/move.h:213:43: error: expected ';' before 'noexcept'
213 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^
| ;
In file included from /usr/include/c++/13/bits/stl_pair.h:62:
/usr/include/c++/13/bits/utility.h:58:12: error: 'size_t' has not been declared
58 | size_t = tuple_size<_Tp>::value>
| ^~~~~~
/usr/include/c++/13/bits/utility.h:62:56: note: invalid template non-type parameter
62 | struct tuple_size<const __enable_if_has_tuple_size<_Tp>>
| ^~~
/usr/include/c++/13/bits/utility.h:62:59: error: template argument 1 is invalid
62 | struct tuple_size<const __enable_if_has_tuple_size<_Tp>>
| ^~
/usr/include/c++/13/bits/utility.h:66:59: note: invalid template non-type parameter
66 | struct tuple_size<volatile __enable_if_has_tuple_size<_Tp>>
| ^~~
/usr/include/c++/13/bits/utility.h:66:62: error: template argument 1 is invalid
66 | struct tuple_size<volatile __enable_if_has_tuple_size<_Tp>>
| ^~
/usr/include/c++/13/bits/utility.h:70:65: note: invalid template non-type parameter
70 | struct tuple_size<const volatile __enable_if_has_tuple_size<_Tp>>
| ^~~
/usr/include/c++/13/bits/utility.h:70:68: error: template argument 1 is invalid
70 | struct tuple_size<const volatile __enable_if_has_tuple_size<_Tp>>
| ^~
/usr/include/c++/13/bits/utility.h:75:22: error: 'size_t' does not name a type
75 | inline constexpr size_t tuple_size_v = tuple_size<_Tp>::value;
| ^~~~~~
/usr/include/c++/13/bits/utility.h:1:1: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
+++ |+#include <cstddef>
1 | // Utilities used throughout the library -*- C++ -*-
/usr/include/c++/13/bits/utility.h:79:12: error: 'size_t' has not been declared
79 | template<size_t __i, typename _Tp>
| ^~~~~~
/usr/include/c++/13/bits/utility.h:80:12: error: no default argument for '_Tp'
80 | struct tuple_element;
| ^~~~~~~~~~~~~
/usr/include/c++/13/bits/utility.h:83:12: error: 'size_t' has not been declared
83 | template<size_t __i, typename _Tp>
| ^~~~~~
/usr/include/c++/13/bits/utility.h:84:54: error: '__i' was not declared in this scope
84 | using __tuple_element_t = typename tuple_element<__i, _Tp>::type;
| ^~~
/usr/include/c++/13/bits/utility.h:84:62: error: template argument 1 is invalid
84 | using __tuple_element_t = typename tuple_element<__i, _Tp>::type;
| ^
/usr/include/c++/13/bits/utility.h:86:12: error: 'size_t' has not been declared
86 | template<size_t __i, typename _Tp>
| ^~~~~~
/usr/include/c++/13/bits/utility.h:87:26: error: '__i' was not declared in this scope
87 | struct tuple_element<__i, const _Tp>
| ^~~
/usr/include/c++/13/bits/utility.h:87:40: error: template argument 1 is invalid
87 | struct tuple_element<__i, const _Tp>
| ^
/usr/include/c++/13/bits/utility.h:92:12: error: 'size_t' has not been declared
92 | template<size_t __i, typename _Tp>
| ^~~~~~
/usr/include/c++/13/bits/utility.h:93:26: error: '__i' was not declared in this scope
93 | struct tuple_element<__i, volatile _Tp>
| ^~~
/usr/include/c++/13/bits/utility.h:93:43: error: template argument 1 is invalid
93 | struct tuple_element<__i, volatile _Tp>
| ^
/usr/include/c++/13/bits/utility.h:98:12: error: 'size_t' has not been declared
98 | template<size_t __i, typename _Tp>
| ^~~~~~
/usr/include/c++/13/bits/utility.h:99:26: error: '__i' was not declared in this scope
99 | struct tuple_element<__i, const volatile _Tp>
| ^~~
/usr/include/c++/13/bits/utility.h:99:49: error: template argument 1 is invalid
99 | struct tuple_element<__i, const volatile _Tp>
| ^
/usr/include/c++/13/bits/utility.h:109:15: error: 'size_t' does not name a type
109 | constexpr size_t
| ^~~~~~
/usr/include/c++/13/bits/utility.h:109:15: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/13/bits/utility.h:134:12: error: 'size_t' has not been declared
134 | template<size_t __i, typename _Tp>
| ^~~~~~
/usr/include/c++/13/bits/utility.h:135:52: error: '__i' was not declared in this scope
135 | using tuple_element_t = typename tuple_element<__i, _Tp>::type;
| ^~~
/usr/include/c++/13/bits/utility.h:135:60: error: template argument 1 is invalid
135 | using tuple_element_t = typename tuple_element<__i, _Tp>::type;
| ^
/usr/include/c++/13/bits/utility.h:140:12: error: 'size_t' has not been declared
140 | template<size_t... _Indexes> struct _Index_tuple { };
| ^~~~~~
/usr/include/c++/13/bits/utility.h:143:12: error: 'size_t' has not been declared
143 | template<size_t _Num>
| ^~~~~~
/usr/include/c++/13/bits/utility.h:154:50: error: '_Num' was not declared in this scope
154 | using __type = _Index_tuple<__integer_pack(_Num)...>;
| ^~~~
/usr/include/c++/13/bits/utility.h:154:55: error: expected parameter pack before '...'
154 | using __type = _Index_tuple<__integer_pack(_Num)...>;
| ^~~
/usr/include/c++/13/bits/utility.h:154:58: error: template argument 1 is invalid
154 | using __type = _Index_tuple<__integer_pack(_Num)...>;
| ^
/usr/include/c++/13/bits/utility.h:170:24: error: 'size_t' does not name a type
170 | static constexpr size_t size() noexcept { return sizeof...(_Idx); }
| ^~~~~~
/usr/include/c++/13/bits/utility.h:170:24: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/13/bits/utility.h:183:12: error: 'size_t' has not been declared
183 | template<size_t... _Idx>
| ^~~~~~
/usr/include/c++/13/bits/utility.h:184:45: error: 'size_t' was not declared in this scope
184 | using index_sequence = integer_sequence<size_t, _Idx...>;
| ^~~~~~
/usr/include/c++/13/bits/utility.h:184:45: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/13/bits/utility.h:184:53: error: '_Idx' was not declared in this scope
184 | using index_sequence = integer_sequence<size_t, _Idx...>;
| ^~~~
/usr/include/c++/13/bits/utility.h:184:57: error: expected parameter pack before '...'
184 | using index_sequence = integer_sequence<size_t, _Idx...>;
| ^~~
/usr/include/c++/13/bits/utility.h:184:60: error: template argument 1 is invalid
184 | using index_sequence = integer_sequence<size_t, _Idx...>;
| ^
/usr/include/c++/13/bits/utility.h:184:60: error: template argument 2 is invalid
/usr/include/c++/13/bits/utility.h:187:12: error: 'size_t' has not been declared
187 | template<size_t _Num>
| ^~~~~~
/usr/include/c++/13/bits/utility.h:188:55: error: 'size_t' was not declared in this scope
188 | using make_index_sequence = make_integer_sequence<size_t, _Num>;
| ^~~~~~
/usr/include/c++/13/bits/utility.h:188:55: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/13/bits/utility.h:188:63: error: '_Num' was not declared in this scope
188 | using make_index_sequence = make_integer_sequence<size_t, _Num>;
| ^~~~
/usr/include/c++/13/bits/utility.h:188:67: error: template argument 1 is invalid
188 | using make_index_sequence = make_integer_sequence<size_t, _Num>;
| ^
/usr/include/c++/13/bits/utility.h:188:67: error: template argument 2 is invalid
/usr/include/c++/13/bits/utility.h:192:32: error: 'make_index_sequence' does not name a type; did you mean 'make_integer_sequence'?
192 | using index_sequence_for = make_index_sequence<sizeof...(_Types)>;
| ^~~~~~~~~~~~~~~~~~~
| make_integer_sequence
/usr/include/c++/13/bits/utility.h:210:12: error: 'size_t' has not been declared
210 | template<size_t _Idx> struct in_place_index_t
| ^~~~~~
/usr/include/c++/13/bits/utility.h:215:12: error: 'size_t' has not been declared
215 | template<size_t _Idx>
| ^~~~~~
/usr/include/c++/13/bits/utility.h:216:39: error: '_Idx' was not declared in this scope
216 | inline constexpr in_place_index_t<_Idx> in_place_index{};
| ^~~~
/usr/include/c++/13/bits/utility.h:216:43: error: template argument 1 is invalid
216 | inline constexpr in_place_index_t<_Idx> in_place_index{};
| ^
/usr/include/c++/13/bits/utility.h:230:12: error: 'size_t' has not been declared
230 | template<size_t _Np, typename... _Types>
| ^~~~~~
/usr/include/c++/13/bits/utility.h:246:12: error: 'size_t' has not been declared
246 | template<size_t _Np, typename _Tp0, typename _Tp1, typename _Tp2,
| ^~~~~~
/usr/include/c++/13/bits/utility.h:251:22: error: '_Np' was not declared in this scope
251 | struct _Nth_type<_Np, _Tp0, _Tp1, _Tp2, _Rest...>
| ^~~
/usr/include/c++/13/bits/utility.h:251:53: error: template argument 1 is invalid
251 | struct _Nth_type<_Np, _Tp0, _Tp1, _Tp2, _Rest...>
| ^
/usr/include/c++/13/bits/utility.h:252:17: error: '_Np' was not declared in this scope
252 | : _Nth_type<_Np - 3, _Rest...>
| ^~~
/usr/include/c++/13/bits/utility.h:252:34: error: template argument 1 is invalid
252 | : _Nth_type<_Np - 3, _Rest...>
| ^
/usr/include/c++/13/bits/stl_pair.h:92:12: error: 'size_t' has not been declared
92 | template<size_t...>
| ^~~~~~
/usr/include/c++/13/bits/stl_pair.h:235:36: error: 'size_t' has not been declared
235 | template<typename... _Args1, size_t... _Indexes1,
| ^~~~~~
/usr/include/c++/13/bits/stl_pair.h:236:36: error: 'size_t' has not been declared
236 | typename... _Args2, size_t... _Indexes2>
| ^~~~~~
/usr/include/c++/13/bits/stl_pair.h:239:27: error: '_Indexes1' was not declared in this scope
239 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
| ^~~~~~~~~
/usr/include/c++/13/bits/stl_pair.h:239:36: error: expected parameter pack before '...'
239 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
| ^~~
/usr/include/c++/13/bits/stl_pair.h:239:39: error: template argument 1 is invalid
239 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
| ^
/usr/include/c++/13/bits/stl_pair.h:239:55: error: '_Indexes2' was not declared in this scope
239 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
| ^~~~~~~~~
/usr/include/c++/13/bits/stl_pair.h:239:64: error: expected parameter pack before '...'
239 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
| ^~~
/usr/include/c++/13/bits/stl_pair.h:239:67: error: template argument 1 is invalid
239 | _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>);
| ^
/usr/include/c++/13/bits/stl_pair.h:950:32: error: 'size_t' was not declared in this scope
950 | : public integral_constant<size_t, 2> { };
| ^~~~~~
/usr/include/c++/13/bits/stl_pair.h:63:1: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
62 | # include <bits/utility.h> // for std::tuple_element, std::tuple_size
+++ |+#include <cstddef>
63 | #endif
/usr/include/c++/13/bits/stl_pair.h:950:41: error: template argument 1 is invalid
950 | : public integral_constant<size_t, 2> { };
| ^
/usr/include/c++/13/bits/stl_pair.h:950:41: note: invalid template non-type parameter
/usr/include/c++/13/bits/stl_pair.h:964:22: error: 'size_t' does not name a type
964 | inline constexpr size_t tuple_size_v<pair<_Tp1, _Tp2>> = 2;
| ^~~~~~
/usr/include/c++/13/bits/stl_pair.h:964:22: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/13/bits/stl_pair.h:967:22: error: 'size_t' does not name a type
967 | inline constexpr size_t tuple_size_v<const pair<_Tp1, _Tp2>> = 2;
| ^~~~~~
/usr/include/c++/13/bits/stl_pair.h:967:22: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
/usr/include/c++/13/bits/stl_pair.h:977:12: error: 'size_t' has not been declared
977 | template<size_t _Int>
| ^~~~~~
/usr/include/c++/13/bits/stl_pair.h:1033:12: error: 'size_t' has not been declared
1033 | template<size_t _Int, class _Tp1, class _Tp2>
| ^~~~~~
/usr/include/c++/13/bits/stl_pair.h:1034:38: error: '_Int' was not declared in this scope
1034 | constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&
| ^~~~
/usr/include/c++/13/bits/stl_pair.h:1034:59: error: template argument 1 is invalid
1034 | constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&
| ^~
/usr/include/c++/13/bits/stl_pair.h: In function 'constexpr int& std::get(pair<_Tp1, _Tp2>&)':
/usr/include/c++/13/bits/stl_pair.h:1036:25: error: '_Int' was not declared in this scope
1036 | { return __pair_get<_Int>::__get(__in); }
| ^~~~
/usr/include/c++/13/bits/stl_pair.h:1036:29: error: template argument 1 is invalid
1036 | { return __pair_get<_Int>::__get(__in); }
| ^
/usr/include/c++/13/bits/stl_pair.h: At global scope:
/usr/include/c++/13/bits/stl_pair.h:1038:12: error: 'size_t' has not been declared
1038 | template<size_t _Int, class _Tp1, class _Tp2>
| ^~~~~~
/usr/include/c++/13/bits/stl_pair.h:1039:38: error: '_Int' was not declared in this scope
1039 | constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&&
| ^~~~
/usr/include/c++/13/bits/stl_pair.h:1039:59: error: template argument 1 is invalid
1039 | constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&&
| ^~
/usr/include/c++/13/bits/stl_pair.h: In function 'constexpr int&& std::get(pair<_Tp1, _Tp2>&&)':
/usr/include/c++/13/bits/stl_pair.h:1041:25: error: '_Int' was not declared in this scope
1041 | { return __pair_get<_Int>::__move_get(std::move(__in)); }
| ^~~~
/usr/include/c++/13/bits/stl_pair.h:1041:29: error: template argument 1 is invalid
1041 | { return __pair_get<_Int>::__move_get(std::move(__in)); }
| ^
/usr/include/c++/13/bits/stl_pair.h: At global scope:
/usr/include/c++/13/bits/stl_pair.h:1043:12: error: 'size_t' has not been declared
1043 | template<size_t _Int, class _Tp1, class _Tp2>
| ^~~~~~
/usr/include/c++/13/bits/stl_pair.h:1044:44: error: '_Int' was not declared in this scope
1044 | constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&
| ^~~~
/usr/include/c++/13/bits/stl_pair.h:1044:65: error: template argument 1 is invalid
1044 | constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&
| ^~
/usr/include/c++/13/bits/stl_pair.h: In function 'const