Submission #1055219

#TimeUsernameProblemLanguageResultExecution timeMemory
1055219TgX_2Linear Garden (IOI08_linear_garden)C++17
Compilation error
0 ms0 KiB
/*----------------------------- Author : TgX.2 10Ti - K28 - CHV -----------------------------*/ #include <bits/stdc++.h> #define FOR(i,a,b) for(int i=(a), _b=(b);i<=_b;++i) #define FORD(i,a,b) for(int i=(a), _b=(b);i>=_b;--i) #define FORC(i,a,b,c) for(int i=(a), _b=(b), _c=(c);i<=_b;i+=_c) #define FORSq(i,a,b) for(int i=(a), _b=(b);i*i<=_b;++i) #define FORSt(i,s) for(int i=0, _s=(int)(s.size());i<_s;++i) #define fi first #define se second #define pb push_back #define mp make_pair #define pp pop_back() #define eb emplace_back #define ers erase #define ins insert #define emp empty() #define rvs reverse #define BIT(x,i) (((x)>>(i))&1) #define MASK(i) (1LL<<(i)) #define CNTBIT(x) __builtin_popcountll(x) #define ODDBIT(x) __builtin_parityll(x) #define FIRSTBIT(x) __builtin_ctzll(x) #define len(x) (int)((x).size()) #define all(x) (x).begin(), (x).end() #define alln(x,n) (x)+1, (x)+1+(n) #define _ <<" "<< #define __ << "\n" #define ___ << " " #define ____ << "\t" #define file "temp" #define ______________TgX______________ main() //#define int long long #define intmax 1e9 #define intmin -1e9 #define llongmax 1e18 #define llongmin -1e18 #define memo(a, val) memset((a), (val), sizeof((a))) using namespace std; using namespace std::chrono; typedef long long ll; typedef unsigned long long ull; typedef pair<int,int> pii; typedef pair<ll,ll> pll; typedef vector<int> vi; typedef vector<ll> vll; typedef vector<pii> vpii; typedef vector<pll> vpll; // int dx[] = {1,-1,0,0} , dy[] = {0,0,1,-1}; // 4 Direction // int dx[] = {1,-1,0,0,1,1,-1,-1} , dy[] = {0,0,1,-1,1,-1,1,-1}; // 8 Direction // int dx[] = {1,-1,1,-1,2,2,-2,-2} , dy[] = {2,2,-2,-2,1,-1,1,-1}; // Knight Direction // int dx[] = {2,-2,1,1,-1,-1} , dy[] = {0,0,1,-1,1,-1}; // Hexagonal Direction void fastio() { if (fopen(file".inp", "r")) { freopen(file".inp", "r", stdin); freopen(file".out", "w", stdout); freopen(file".debug", "w", stderr); } ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); } template<typename T1, typename T2> bool mini(T1 &a, T2 b) {if(a>b) a=b; else return 0; return 1;} template<typename T1, typename T2> bool maxi(T1 &a, T2 b) {if(a<b) a=b; else return 0; return 1;} /*-----------------------------*/ const int maxn = 1e6 + 7; int f[maxn][3][3]; int n, m; string s; int dp(int id, int a, int b) { if (a < -2 or b > 2) return 0; if (id > n) return 1; int &ans = f[id][-a][b]; if (ans != -1) return ans; ans = 0; ans = (ans + dp(id + 1, min({0LL, a - 1, -1LL}), max({0LL, b - 1, -1LL}))) % m; ans = (ans + dp(id + 1, min({0LL, a + 1, +1LL}), max({0LL, b + 1, +1LL}))) % m; return ans; } void process() { cin >> n >> m; memo(f, -1); int a = 0, b = 0, ans = 0; FOR(i, 1, n) { char x; cin >> x; if (x == 'P'){ if (a != -2) ans = (ans + dp(i + 1, min({0LL, a - 1, -1LL}), max({0LL, b - 1, -1LL}))) % m; a = min({0LL, a + 1, +1LL}); b = max({0LL, b + 1, +1LL}); } else { a = min({0LL, a - 1, -1LL}); b = max({0LL, b - 1, -1LL}); } } cout << ans + 1; } /*-----------------------------*/ ______________TgX______________ { auto start = high_resolution_clock::now(); fastio(); process(); auto stop = high_resolution_clock::now(); auto duration = duration_cast<microseconds>(stop - start); cerr << "Time: " << duration.count() << " ms" << endl; } /*==============================+ |INPUT | --------------------------------| ================================+ |OUTPUT | --------------------------------| ===============================*/

Compilation message (stderr)

linear_garden.cpp: In function 'int dp(int, int, int)':
linear_garden.cpp:96:51: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
   96 |     ans = (ans + dp(id + 1, min({0LL, a - 1, -1LL}), max({0LL, b - 1, -1LL}))) % m;
      |                                                   ^
In file included from /usr/include/c++/10/bits/specfun.h:45,
                 from /usr/include/c++/10/cmath:1927,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
                 from linear_garden.cpp:6:
/usr/include/c++/10/bits/stl_algobase.h:230:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  230 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/10/bits/stl_algobase.h:230:5: note:   template argument deduction/substitution failed:
linear_garden.cpp:96:51: note:   candidate expects 2 arguments, 1 provided
   96 |     ans = (ans + dp(id + 1, min({0LL, a - 1, -1LL}), max({0LL, b - 1, -1LL}))) % m;
      |                                                   ^
In file included from /usr/include/c++/10/bits/specfun.h:45,
                 from /usr/include/c++/10/cmath:1927,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
                 from linear_garden.cpp:6:
/usr/include/c++/10/bits/stl_algobase.h:278:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  278 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/10/bits/stl_algobase.h:278:5: note:   template argument deduction/substitution failed:
linear_garden.cpp:96:51: note:   candidate expects 3 arguments, 1 provided
   96 |     ans = (ans + dp(id + 1, min({0LL, a - 1, -1LL}), max({0LL, b - 1, -1LL}))) % m;
      |                                                   ^
In file included from /usr/include/c++/10/algorithm:62,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
                 from linear_garden.cpp:6:
/usr/include/c++/10/bits/stl_algo.h:3468:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(std::initializer_list<_Tp>)'
 3468 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/10/bits/stl_algo.h:3468:5: note:   template argument deduction/substitution failed:
linear_garden.cpp:96:51: note:   deduced conflicting types for parameter '_Tp' ('long long int' and 'int')
   96 |     ans = (ans + dp(id + 1, min({0LL, a - 1, -1LL}), max({0LL, b - 1, -1LL}))) % m;
      |                                                   ^
In file included from /usr/include/c++/10/algorithm:62,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
                 from linear_garden.cpp:6:
/usr/include/c++/10/bits/stl_algo.h:3474:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(std::initializer_list<_Tp>, _Compare)'
 3474 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/10/bits/stl_algo.h:3474:5: note:   template argument deduction/substitution failed:
linear_garden.cpp:96:51: note:   deduced conflicting types for parameter '_Tp' ('long long int' and 'int')
   96 |     ans = (ans + dp(id + 1, min({0LL, a - 1, -1LL}), max({0LL, b - 1, -1LL}))) % m;
      |                                                   ^
linear_garden.cpp:96:76: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
   96 |     ans = (ans + dp(id + 1, min({0LL, a - 1, -1LL}), max({0LL, b - 1, -1LL}))) % m;
      |                                                                            ^
In file included from /usr/include/c++/10/bits/specfun.h:45,
                 from /usr/include/c++/10/cmath:1927,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
                 from linear_garden.cpp:6:
/usr/include/c++/10/bits/stl_algobase.h:254:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  254 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/10/bits/stl_algobase.h:254:5: note:   template argument deduction/substitution failed:
linear_garden.cpp:96:76: note:   candidate expects 2 arguments, 1 provided
   96 |     ans = (ans + dp(id + 1, min({0LL, a - 1, -1LL}), max({0LL, b - 1, -1LL}))) % m;
      |                                                                            ^
In file included from /usr/include/c++/10/bits/specfun.h:45,
                 from /usr/include/c++/10/cmath:1927,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
                 from linear_garden.cpp:6:
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  300 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/10/bits/stl_algobase.h:300:5: note:   template argument deduction/substitution failed:
linear_garden.cpp:96:76: note:   candidate expects 3 arguments, 1 provided
   96 |     ans = (ans + dp(id + 1, min({0LL, a - 1, -1LL}), max({0LL, b - 1, -1LL}))) % m;
      |                                                                            ^
In file included from /usr/include/c++/10/algorithm:62,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
                 from linear_garden.cpp:6:
/usr/include/c++/10/bits/stl_algo.h:3480:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(std::initializer_list<_Tp>)'
 3480 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/10/bits/stl_algo.h:3480:5: note:   template argument deduction/substitution failed:
linear_garden.cpp:96:76: note:   deduced conflicting types for parameter '_Tp' ('long long int' and 'int')
   96 |     ans = (ans + dp(id + 1, min({0LL, a - 1, -1LL}), max({0LL, b - 1, -1LL}))) % m;
      |                                                                            ^
In file included from /usr/include/c++/10/algorithm:62,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
                 from linear_garden.cpp:6:
/usr/include/c++/10/bits/stl_algo.h:3486:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(std::initializer_list<_Tp>, _Compare)'
 3486 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/10/bits/stl_algo.h:3486:5: note:   template argument deduction/substitution failed:
linear_garden.cpp:96:76: note:   deduced conflicting types for parameter '_Tp' ('long long int' and 'int')
   96 |     ans = (ans + dp(id + 1, min({0LL, a - 1, -1LL}), max({0LL, b - 1, -1LL}))) % m;
      |                                                                            ^
linear_garden.cpp:97:51: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
   97 |     ans = (ans + dp(id + 1, min({0LL, a + 1, +1LL}), max({0LL, b + 1, +1LL}))) % m;
      |                                                   ^
In file included from /usr/include/c++/10/bits/specfun.h:45,
                 from /usr/include/c++/10/cmath:1927,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
                 from linear_garden.cpp:6:
/usr/include/c++/10/bits/stl_algobase.h:230:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  230 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/10/bits/stl_algobase.h:230:5: note:   template argument deduction/substitution failed:
linear_garden.cpp:97:51: note:   candidate expects 2 arguments, 1 provided
   97 |     ans = (ans + dp(id + 1, min({0LL, a + 1, +1LL}), max({0LL, b + 1, +1LL}))) % m;
      |                                                   ^
In file included from /usr/include/c++/10/bits/specfun.h:45,
                 from /usr/include/c++/10/cmath:1927,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
                 from linear_garden.cpp:6:
/usr/include/c++/10/bits/stl_algobase.h:278:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  278 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/10/bits/stl_algobase.h:278:5: note:   template argument deduction/substitution failed:
linear_garden.cpp:97:51: note:   candidate expects 3 arguments, 1 provided
   97 |     ans = (ans + dp(id + 1, min({0LL, a + 1, +1LL}), max({0LL, b + 1, +1LL}))) % m;
      |                                                   ^
In file included from /usr/include/c++/10/algorithm:62,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
                 from linear_garden.cpp:6:
/usr/include/c++/10/bits/stl_algo.h:3468:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(std::initializer_list<_Tp>)'
 3468 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/10/bits/stl_algo.h:3468:5: note:   template argument deduction/substitution failed:
linear_garden.cpp:97:51: note:   deduced conflicting types for parameter '_Tp' ('long long int' and 'int')
   97 |     ans = (ans + dp(id + 1, min({0LL, a + 1, +1LL}), max({0LL, b + 1, +1LL}))) % m;
      |                                                   ^
In file included from /usr/include/c++/10/algorithm:62,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
                 from linear_garden.cpp:6:
/usr/include/c++/10/bits/stl_algo.h:3474:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(std::initializer_list<_Tp>, _Compare)'
 3474 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/10/bits/stl_algo.h:3474:5: note:   template argument deduction/substitution failed:
linear_garden.cpp:97:51: note:   deduced conflicting types for parameter '_Tp' ('long long int' and 'int')
   97 |     ans = (ans + dp(id + 1, min({0LL, a + 1, +1LL}), max({0LL, b + 1, +1LL}))) % m;
      |                                                   ^
linear_garden.cpp:97:76: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
   97 |     ans = (ans + dp(id + 1, min({0LL, a + 1, +1LL}), max({0LL, b + 1, +1LL}))) % m;
      |                                                                            ^
In file included from /usr/include/c++/10/bits/specfun.h:45,
                 from /usr/include/c++/10/cmath:1927,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
                 from linear_garden.cpp:6:
/usr/include/c++/10/bits/stl_algobase.h:254:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  254 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/10/bits/stl_algobase.h:254:5: note:   template argument deduction/substitution failed:
linear_garden.cpp:97:76: note:   candidate expects 2 arguments, 1 provided
   97 |     ans = (ans + dp(id + 1, min({0LL, a + 1, +1LL}), max({0LL, b + 1, +1LL}))) % m;
      |                                                                            ^
In file included from /usr/include/c++/10/bits/specfun.h:45,
                 from /usr/include/c++/10/cmath:1927,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
                 from linear_garden.cpp:6:
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  300 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/10/bits/stl_algobase.h:300:5: note:   template argument deduction/substitution failed:
linear_garden.cpp:97:76: note:   candidate expects 3 arguments, 1 provided
   97 |     ans = (ans + dp(id + 1, min({0LL, a + 1, +1LL}), max({0LL, b + 1, +1LL}))) % m;
      |                                                                            ^
In file included from /usr/include/c++/10/algorithm:62,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
                 from linear_garden.cpp:6:
/usr/include/c++/10/bits/stl_algo.h:3480:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(std::initializer_list<_Tp>)'
 3480 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/10/bits/stl_algo.h:3480:5: note:   template argument deduction/substitution failed:
linear_garden.cpp:97:76: note:   deduced conflicting types for parameter '_Tp' ('long long int' and 'int')
   97 |     ans = (ans + dp(id + 1, min({0LL, a + 1, +1LL}), max({0LL, b + 1, +1LL}))) % m;
      |                                                                            ^
In file included from /usr/include/c++/10/algorithm:62,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
                 from linear_garden.cpp:6:
/usr/include/c++/10/bits/stl_algo.h:3486:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(std::initializer_list<_Tp>, _Compare)'
 3486 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/10/bits/stl_algo.h:3486:5: note:   template argument deduction/substitution failed:
linear_garden.cpp:97:76: note:   deduced conflicting types for parameter '_Tp' ('long long int' and 'int')
   97 |     ans = (ans + dp(id + 1, min({0LL, a + 1, +1LL}), max({0LL, b + 1, +1LL}))) % m;
      |                                                                            ^
linear_garden.cpp: In function 'void process()':
linear_garden.cpp:109:62: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
  109 |                 ans = (ans + dp(i + 1, min({0LL, a - 1, -1LL}), max({0LL, b - 1, -1LL}))) % m;
      |                                                              ^
In file included from /usr/include/c++/10/bits/specfun.h:45,
                 from /usr/include/c++/10/cmath:1927,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
                 from linear_garden.cpp:6:
/usr/include/c++/10/bits/stl_algobase.h:230:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  230 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/10/bits/stl_algobase.h:230:5: note:   template argument deduction/substitution failed:
linear_garden.cpp:109:62: note:   candidate expects 2 arguments, 1 provided
  109 |                 ans = (ans + dp(i + 1, min({0LL, a - 1, -1LL}), max({0LL, b - 1, -1LL}))) % m;
      |                                                              ^
In file included from /usr/include/c++/10/bits/specfun.h:45,
                 from /usr/include/c++/10/cmath:1927,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
                 from linear_garden.cpp:6:
/usr/include/c++/10/bits/stl_algobase.h:278:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  278 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/10/bits/stl_algobase.h:278:5: note:   template argument deduction/substitution failed:
linear_garden.cpp:109:62: note:   candidate expects 3 arguments, 1 provided
  109 |                 ans = (ans + dp(i + 1, min({0LL, a - 1, -1LL}), max({0LL, b - 1, -1LL}))) % m;
      |                                                              ^
In file included from /usr/include/c++/10/algorithm:62,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
                 from linear_garden.cpp:6:
/usr/include/c++/10/bits/stl_algo.h:3468:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(std::initializer_list<_Tp>)'
 3468 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/10/bits/stl_algo.h:3468:5: note:   template argument deduction/substitution failed:
linear_garden.cpp:109:62: note:   deduced conflicting types for parameter '_Tp' ('long long int' and 'int')
  109 |                 ans = (ans + dp(i + 1, min({0LL, a - 1, -1LL}), max({0LL, b - 1, -1LL}))) % m;
      |                                                              ^
In file included from /usr/include/c++/10/algorithm:62,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
                 from linear_garden.cpp:6:
/usr/include/c++/10/bits/stl_algo.h:3474:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(std::initializer_list<_Tp>, _Compare)'
 3474 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/10/bits/stl_algo.h:3474:5: note:   template argument deduction/substitution failed:
linear_garden.cpp:109:62: note:   deduced conflicting types for parameter '_Tp' ('long long int' and 'int')
  109 |                 ans = (ans + dp(i + 1, min({0LL, a - 1, -1LL}), max({0LL, b - 1, -1LL}))) % m;
      |                                                              ^
linear_garden.cpp:109:87: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
  109 |                 ans = (ans + dp(i + 1, min({0LL, a - 1, -1LL}), max({0LL, b - 1, -1LL}))) % m;
      |                                                                                       ^
In file included from /usr/include/c++/10/bits/specfun.h:45,
                 from /usr/include/c++/10/cmath:1927,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
                 from linear_garden.cpp:6:
/usr/include/c++/10/bits/stl_algobase.h:254:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  254 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/10/bits/stl_algobase.h:254:5: note:   template argument deduction/substitution failed:
linear_garden.cpp:109:87: note:   candidate expects 2 arguments, 1 provided
  109 |                 ans = (ans + dp(i + 1, min({0LL, a - 1, -1LL}), max({0LL, b - 1, -1LL}))) % m;
      |                                                                                       ^
In file included from /usr/include/c++/10/bits/specfun.h:45,
                 from /usr/include/c++/10/cmath:1927,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
                 from linear_garden.cpp:6:
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  300 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/10/bits/stl_algobase.h:3