| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 1277474 | not_amir | Dynamic Diameter (CEOI19_diameter) | C++20 | Compilation error | 0 ms | 0 KiB | 
#include <bits/stdc++.h>
using namespace std;
typedef __int128 ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
vector<vector<int>> G;
vector<bool> in_c;
vector<int> siz;
void dfs(int v, int p) {
    siz[v] = 1;
    for (int u : G[v]) {
        if (in_c[u] || u == p)
            continue;
        dfs(u, v);
        siz[v] += siz[u];
    }
}
int get_cent(int v, int p, int N) {
    for (int u : G[v]) {
        if (in_c[u] || u == p)
            continue;
        if (siz[u] > N / 2)
            return get_cent(u, v, N);
    }
    return v;
}
multiset<ll, greater<>> CS;
void erase(ll w) {
    CS.erase(CS.find(w));
}
void insert(ll w) {
    CS.insert(w);
}
struct lvl {
    struct node {
        unordered_map<int, int> in, out;
        vector<ll> st, add;
        int n = 0;
        void update(int i, int l, int r, int tl, int tr, ll w) {
            if (l >= r)
                return;
            if (l == tl && r == tr)
                add[i] += w;
            else {
                int tm = (tl + tr) / 2;
                update(2 * i, l, min(tm, r), tl, tm, w),
                update(2 * i + 1, max(l, tm), r, tm, tr, w);
            }
            st[i] = add[i] + (tl + 1 == tr ? 0 : max(st[2 * i], st[2 * i + 1]));
        }
        void update_edge(int u, int v, ll w) {
            if (in[u] > in[v])
                swap(u, v);
            update(1, in[v], out[v], 0, n, w);
        }
        void dfs(int v, int p) {
            in[v] = n++;
            for (int u : G[v]) {
                if (in_c[u] || u == p)
                    continue;
                dfs(u, v);
            }
            out[v] = n;
        }
        void init(int v, int p) {
            dfs(v, p);
            int N = 1;
            while (N < n)
                N *= 2;
            st.resize(2 * N);
            add.resize(2 * N);
        }
    };
    multiset<ll, greater<>> S;
    ll calc() {
        if (S.empty())
            return 0;
        if (S.size() == 1)
            return *S.begin();
        return *S.begin() + *next(S.begin());
    }
    unordered_map<int, node*> nodes;
    int d;
    void init(int v, int _d) {
        d = _d;
        nodes[v] = nullptr;
        for (int u : G[v]) {
            if (in_c[u])
                continue;
            node *cur = new node();
            cur->init(u, v);
            for (auto [v, jnk] : cur->in)
                nodes[v] = cur;
            S.insert(0);
        }
        insert(calc());
    }
    void update_edge(int u, int v, ll w) {
        erase(calc());
        if (!nodes[v])
            swap(u, v);
        S.erase(S.find(nodes[v]->st[1]));
        if (nodes[u] && nodes[v])
            nodes[v]->update_edge(u, v, w);
        else
            nodes[v]->st[1] += w, nodes[v]->add[1] += w;
        S.insert(nodes[v]->st[1]);
        insert(calc());
    }
};
vector<lvl> dcmp;
vector<int> par;
void cent_decomposition(int v, int p, int d = 0) {
    dfs(v, -1);
    int c = get_cent(v, -1, siz[v]);
    par[c] = p;
    dcmp[c].init(c, d);
    in_c[c] = true;
    for (int u : G[c]) {
        if (in_c[u])
            continue;
        cent_decomposition(u, c, d + 1);
    }
}
vector<pair<pii, ll>> E;
void update_edge(int i, ll w) {
    auto [p, pw] = E[i];
    auto [u, v] = p;
    ll diff = w - pw;
    E[i].second = w;
    int c = dcmp[u].d < dcmp[v].d ? u : v;
    while (c) {
        dcmp[c].update_edge(u, v, diff);
        c = par[c];
    }
}
int32_t main() {
    cin.tie(nullptr)->sync_with_stdio(false);
    int n, q, w;
    cin >> n >> q >> w;
    G.resize(n + 1);
    in_c.resize(n + 1);
    siz.resize(n + 1);
    dcmp.resize(n + 1);
    par.resize(n + 1);
    E.resize(n);
    vector<ll> qu(n);
    for (int i = 1; i < n; i++) {
        int a, b;
        ll c;
        cin >> a >> b >> c;
        E[i] = {{a, b}, 0};
        qu[i] = c;
        G[a].push_back(b);
        G[b].push_back(a);
    }
    cent_decomposition(1, 0);
    for (int i = 1; i < n; i++) {
        update_edge(i, qu[i]);
    }
    ll last = 0;
    while (q--) {
        int d;
        ll e;
        cin >> d >> e;
        d = (last + d) % (n - 1);
        e = (last + e) % w;
        update_edge(d + 1, e);
        last = *CS.begin();
        cout << last << '\n';
    }
}
Compilation message (stderr)
diameter.cpp: In function 'int32_t main()':
diameter.cpp:174:23: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'll' {aka '__int128'})
  174 |         cin >> a >> b >> c;
      |         ~~~~~~~~~~~~~ ^~ ~
      |                  |       |
      |                  |       ll {aka __int128}
      |                  std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}
In file included from /usr/include/c++/13/sstream:40,
                 from /usr/include/c++/13/complex:45,
                 from /usr/include/c++/13/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:127,
                 from diameter.cpp:1:
/usr/include/c++/13/istream:325:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  325 |       operator>>(void*& __p)
      |       ^~~~~~~~
/usr/include/c++/13/istream:325:7: note:   conversion of argument 1 would be ill-formed:
diameter.cpp:174:26: error: invalid conversion from 'll' {aka '__int128'} to 'void*' [-fpermissive]
  174 |         cin >> a >> b >> c;
      |                          ^
      |                          |
      |                          ll {aka __int128}
diameter.cpp:174:26: error: cannot bind rvalue '(void*)((long int)c)' to 'void*&'
/usr/include/c++/13/istream:224:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  224 |       operator>>(long double& __f)
      |       ^~~~~~~~
/usr/include/c++/13/istream:224:7: note:   conversion of argument 1 would be ill-formed:
diameter.cpp:174:26: error: cannot bind non-const lvalue reference of type 'long double&' to a value of type 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/istream:220:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  220 |       operator>>(double& __f)
      |       ^~~~~~~~
/usr/include/c++/13/istream:220:7: note:   conversion of argument 1 would be ill-formed:
diameter.cpp:174:26: error: cannot bind non-const lvalue reference of type 'double&' to a value of type 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/istream:216:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  216 |       operator>>(float& __f)
      |       ^~~~~~~~
/usr/include/c++/13/istream:216:7: note:   conversion of argument 1 would be ill-formed:
diameter.cpp:174:26: error: cannot bind non-const lvalue reference of type 'float&' to a value of type 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/istream:201:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  201 |       operator>>(unsigned long long& __n)
      |       ^~~~~~~~
/usr/include/c++/13/istream:201:7: note:   conversion of argument 1 would be ill-formed:
diameter.cpp:174:26: error: cannot bind non-const lvalue reference of type 'long long unsigned int&' to a value of type 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/istream:197:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  197 |       operator>>(long long& __n)
      |       ^~~~~~~~
/usr/include/c++/13/istream:197:7: note:   conversion of argument 1 would be ill-formed:
diameter.cpp:174:26: error: cannot bind non-const lvalue reference of type 'long long int&' to a value of type 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/istream:192:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  192 |       operator>>(unsigned long& __n)
      |       ^~~~~~~~
/usr/include/c++/13/istream:192:7: note:   conversion of argument 1 would be ill-formed:
diameter.cpp:174:26: error: cannot bind non-const lvalue reference of type 'long unsigned int&' to a value of type 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/istream:188:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  188 |       operator>>(long& __n)
      |       ^~~~~~~~
/usr/include/c++/13/istream:188:7: note:   conversion of argument 1 would be ill-formed:
diameter.cpp:174:26: error: cannot bind non-const lvalue reference of type 'long int&' to a value of type 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/istream:184:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  184 |       operator>>(unsigned int& __n)
      |       ^~~~~~~~
/usr/include/c++/13/istream:184:7: note:   conversion of argument 1 would be ill-formed:
diameter.cpp:174:26: error: cannot bind non-const lvalue reference of type 'unsigned int&' to a value of type 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/istream:181:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
  181 |       operator>>(int& __n);
      |       ^~~~~~~~
/usr/include/c++/13/istream:181:7: note:   conversion of argument 1 would be ill-formed:
diameter.cpp:174:26: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/istream:177:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  177 |       operator>>(unsigned short& __n)
      |       ^~~~~~~~
/usr/include/c++/13/istream:177:7: note:   conversion of argument 1 would be ill-formed:
diameter.cpp:174:26: error: cannot bind non-const lvalue reference of type 'short unsigned int&' to a value of type 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/istream:174:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
  174 |       operator>>(short& __n);
      |       ^~~~~~~~
/usr/include/c++/13/istream:174:7: note:   conversion of argument 1 would be ill-formed:
diameter.cpp:174:26: error: cannot bind non-const lvalue reference of type 'short int&' to a value of type 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/istream:170:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  170 |       operator>>(bool& __n)
      |       ^~~~~~~~
/usr/include/c++/13/istream:170:7: note:   conversion of argument 1 would be ill-formed:
diameter.cpp:174:26: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/istream:122:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__istream_type& (*)(__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  122 |       operator>>(__istream_type& (*__pf)(__istream_type&))
      |       ^~~~~~~~
/usr/include/c++/13/istream:122:7: note:   conversion of argument 1 would be ill-formed:
diameter.cpp:174:26: error: invalid conversion from 'll' {aka '__int128'} to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&)' {aka 'std::basic_istream<char>& (*)(std::basic_istream<char>&)'} [-fpermissive]
  174 |         cin >> a >> b >> c;
      |                          ^
      |                          |
      |                          ll {aka __int128}
/usr/include/c++/13/istream:126:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; __ios_type = std::basic_ios<char>]' (near match)
  126 |       operator>>(__ios_type& (*__pf)(__ios_type&))
      |       ^~~~~~~~
/usr/include/c++/13/istream:126:7: note:   conversion of argument 1 would be ill-formed:
diameter.cpp:174:26: error: invalid conversion from 'll' {aka '__int128'} to 'std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'} [-fpermissive]
  174 |         cin >> a >> b >> c;
      |                          ^
      |                          |
      |                          ll {aka __int128}
/usr/include/c++/13/istream:133:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  133 |       operator>>(ios_base& (*__pf)(ios_base&))
      |       ^~~~~~~~
/usr/include/c++/13/istream:133:7: note:   conversion of argument 1 would be ill-formed:
diameter.cpp:174:26: error: invalid conversion from 'll' {aka '__int128'} to 'std::ios_base& (*)(std::ios_base&)' [-fpermissive]
  174 |         cin >> a >> b >> c;
      |                          ^
      |                          |
      |                          ll {aka __int128}
/usr/include/c++/13/istream:349:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(__streambuf_type*) [with _CharT = char; _Traits = std::char_traits<char>; __streambuf_type = std::basic_streambuf<char>]' (near match)
  349 |       operator>>(__streambuf_type* __sb);
      |       ^~~~~~~~
/usr/include/c++/13/istream:349:7: note:   conversion of argument 1 would be ill-formed:
diameter.cpp:174:26: error: invalid conversion from 'll' {aka '__int128'} to 'std::basic_istream<char>::__streambuf_type*' {aka 'std::basic_streambuf<char>*'} [-fpermissive]
  174 |         cin >> a >> b >> c;
      |                          ^
      |                          |
      |                          ll {aka __int128}
diameter.cpp:174:23: note: candidate: 'operator>>(int, ll {aka __int128})' (built-in)
  174 |         cin >> a >> b >> c;
      |         ~~~~~~~~~~~~~~^~~~
diameter.cpp:174:23: note:   no known conversion for argument 1 from 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} to 'int'
In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:41:
/usr/include/c++/13/cstddef:130:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)'
  130 |     operator>>(byte __b, _IntegerType __shift) noexcept
      |     ^~~~~~~~
/usr/include/c++/13/cstddef:130:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:18: note:   cannot convert '(& std::cin.std::basic_istream<char>::operator>>(a))->std::basic_istream<char>::operator>>(b)' (type 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'}) to type 'std::byte'
  174 |         cin >> a >> b >> c;
      |         ~~~~~~~~~^~~~
In file included from /usr/include/c++/13/string:55,
                 from /usr/include/c++/13/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:52:
/usr/include/c++/13/bits/basic_string.tcc:827:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
  827 |     operator>>(basic_istream<_CharT, _Traits>& __in,
      |     ^~~~~~~~
/usr/include/c++/13/bits/basic_string.tcc:827:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/bitset:1593:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, bitset<_Nb>&)'
 1593 |     operator>>(std::basic_istream<_CharT, _Traits>& __is, bitset<_Nb>& __x)
      |     ^~~~~~~~
/usr/include/c++/13/bitset:1593:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'std::bitset<_Nb>' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
In file included from /usr/include/c++/13/istream:1106:
/usr/include/c++/13/bits/istream.tcc:975:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)'
  975 |     operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
      |     ^~~~~~~~
/usr/include/c++/13/bits/istream.tcc:975:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   deduced conflicting types for parameter '_CharT' ('char' and 'll' {aka '__int128'})
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/istream:846:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)'
  846 |     operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
      |     ^~~~~~~~
/usr/include/c++/13/istream:846:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   cannot convert 'c' (type 'll' {aka '__int128'}) to type 'unsigned char&'
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/istream:851:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)'
  851 |     operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
      |     ^~~~~~~~
/usr/include/c++/13/istream:851:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   cannot convert 'c' (type 'll' {aka '__int128'}) to type 'signed char&'
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/istream:949:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Num> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT (&)[_Num])'
  949 |     operator>>(basic_istream<_CharT, _Traits>& __in, _CharT (&__s)[_Num])
      |     ^~~~~~~~
/usr/include/c++/13/istream:949:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types '_CharT [_Num]' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/istream:958:5: note: candidate: 'template<class _Traits, long unsigned int _Num> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char (&)[_Num])'
  958 |     operator>>(basic_istream<char, _Traits>& __in, unsigned char (&__s)[_Num])
      |     ^~~~~~~~
/usr/include/c++/13/istream:958:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'unsigned char [_Num]' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/istream:963:5: note: candidate: 'template<class _Traits, long unsigned int _Num> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char (&)[_Num])'
  963 |     operator>>(basic_istream<char, _Traits>& __in, signed char (&__s)[_Num])
      |     ^~~~~~~~
/usr/include/c++/13/istream:963:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'signed char [_Num]' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/istream:1096:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)'
 1096 |     operator>>(_Istream&& __is, _Tp&& __x)
      |     ^~~~~~~~
/usr/include/c++/13/istream:1096:5: note:   template argument deduction/substitution failed:
/usr/include/c++/13/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_istream<char>&; _Tp = __int128&]':
diameter.cpp:174:26:   required from here
/usr/include/c++/13/istream:1096:5: error: template constraint failure for 'template<class _Is, class _Tp>  requires (__derived_from_ios_base<_Is>) && requires(_Is& __is, _Tp&& __t) {__is >> (forward<_Tp>)(__t);} using std::__rvalue_stream_extraction_t = _Is&&'
/usr/include/c++/13/istream:1096:5: note: constraints not satisfied
In file included from /usr/include/c++/13/bits/unique_ptr.h:42,
                 from /usr/include/c++/13/memory:78,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:56:
/usr/include/c++/13/ostream: In substitution of 'template<class _Is, class _Tp>  requires (__derived_from_ios_base<_Is>) && requires(_Is& __is, _Tp&& __t) {__is >> (forward<_Tp>)(__t);} using std::__rvalue_stream_extraction_t = _Is&& [with _Is = std::basic_istream<char>&; _Tp = __int128&]':
/usr/include/c++/13/istream:1096:5:   required by substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_istream<char>&; _Tp = __int128&]'
diameter.cpp:174:26:   required from here
/usr/include/c++/13/ostream:768:13:   required for the satisfaction of '__derived_from_ios_base<_Is>' [with _Is = std::basic_istream<char, std::char_traits<char> >&]
/usr/include/c++/13/ostream:768:39: note: the expression 'is_class_v<_Tp> [with _Tp = std::basic_istream<char, std::char_traits<char> >&]' evaluated to 'false'
  768 |     concept __derived_from_ios_base = is_class_v<_Tp>
      |                                       ^~~~~~~~~~~~~~~
/usr/include/c++/13/complex:504:5: note: candidate: 'template<class _Tp, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, complex<_Tp>&)'
  504 |     operator>>(basic_istream<_CharT, _Traits>& __is, complex<_Tp>& __x)
      |     ^~~~~~~~
/usr/include/c++/13/complex:504:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'std::complex<_Tp>' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:143:
/usr/include/c++/13/iomanip:73:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Resetiosflags)'
   73 |     operator>>(basic_istream<_CharT, _Traits>& __is, _Resetiosflags __f)
      |     ^~~~~~~~
/usr/include/c++/13/iomanip:73:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   cannot convert 'c' (type 'll' {aka '__int128'}) to type 'std::_Resetiosflags'
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/iomanip:103:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setiosflags)'
  103 |     operator>>(basic_istream<_CharT, _Traits>& __is, _Setiosflags __f)
      |     ^~~~~~~~
/usr/include/c++/13/iomanip:103:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   cannot convert 'c' (type 'll' {aka '__int128'}) to type 'std::_Setiosflags'
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/iomanip:134:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setbase)'
  134 |     operator>>(basic_istream<_CharT, _Traits>& __is, _Setbase __f)
      |     ^~~~~~~~
/usr/include/c++/13/iomanip:134:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   cannot convert 'c' (type 'll' {aka '__int128'}) to type 'std::_Setbase'
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/iomanip:172:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setfill<_CharT>)'
  172 |     operator>>(basic_istream<_CharT, _Traits>& __is, _Setfill<_CharT> __f)
      |     ^~~~~~~~
/usr/include/c++/13/iomanip:172:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'std::_Setfill<_CharT>' and '__int128'
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/iomanip:202:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setprecision)'
  202 |     operator>>(basic_istream<_CharT, _Traits>& __is, _Setprecision __f)
      |     ^~~~~~~~
/usr/include/c++/13/iomanip:202:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   cannot convert 'c' (type 'll' {aka '__int128'}) to type 'std::_Setprecision'
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/iomanip:232:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setw)'
  232 |     operator>>(basic_istream<_CharT, _Traits>& __is, _Setw __f)
      |     ^~~~~~~~
/usr/include/c++/13/iomanip:232:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   cannot convert 'c' (type 'll' {aka '__int128'}) to type 'std::_Setw'
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/iomanip:266:5: note: candidate: 'template<class _CharT, class _Traits, class _MoneyT> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Get_money<_MoneyT>)'
  266 |     operator>>(basic_istream<_CharT, _Traits>& __is, _Get_money<_MoneyT> __f)
      |     ^~~~~~~~
/usr/include/c++/13/iomanip:266:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'std::_Get_money<_MoneyT>' and '__int128'
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/iomanip:420:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Get_time<_CharT>)'
  420 |     operator>>(basic_istream<_CharT, _Traits>& __is, _Get_time<_CharT> __f)
      |     ^~~~~~~~
/usr/include/c++/13/iomanip:420:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'std::_Get_time<_CharT>' and '__int128'
  174 |         cin >> a >> b >> c;
      |                          ^
In file included from /usr/include/c++/13/valarray:605,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:166:
/usr/include/c++/13/bits/valarray_after.h:414:5: note: candidate: 'template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__shift_right, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__shift_right, typename _Dom1::value_type>::result_type> std::operator>>(const _Expr<_Dom1, typename _Dom1::value_type>&, const _Expr<_Dom2, typename _Dom2::value_type>&)'
  414 |     _DEFINE_EXPR_BINARY_OPERATOR(>>, struct std::__shift_right)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/valarray_after.h:414:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/bits/valarray_after.h:414:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__shift_right, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__shift_right, typename _Dom1::value_type>::result_type> std::operator>>(const _Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)'
  414 |     _DEFINE_EXPR_BINARY_OPERATOR(>>, struct std::__shift_right)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/valarray_after.h:414:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/bits/valarray_after.h:414:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__shift_right, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__shift_right, typename _Dom1::value_type>::result_type> std::operator>>(const typename _Dom::value_type&, const _Expr<_Dom1, typename _Dom1::value_type>&)'
  414 |     _DEFINE_EXPR_BINARY_OPERATOR(>>, struct std::__shift_right)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/valarray_after.h:414:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/bits/valarray_after.h:414:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__shift_right, std::_Expr, std::_ValArray, _Dom, typename _Dom::value_type>, typename std::__fun<std::__shift_right, typename _Dom1::value_type>::result_type> std::operator>>(const _Expr<_Dom1, typename _Dom1::value_type>&, const valarray<typename _Dom::value_type>&)'
  414 |     _DEFINE_EXPR_BINARY_OPERATOR(>>, struct std::__shift_right)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/valarray_after.h:414:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>'
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/bits/valarray_after.h:414:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__shift_right, std::_ValArray, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__shift_right, typename _Dom1::value_type>::result_type> std::operator>>(const valarray<typename _Dom::value_type>&, const _Expr<_Dom1, typename _Dom1::value_type>&)'
  414 |     _DEFINE_EXPR_BINARY_OPERATOR(>>, struct std::__shift_right)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/valarray_after.h:414:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/valarray:1205:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__shift_right, std::_ValArray, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__shift_right, _Tp>::result_type> std::operator>>(const valarray<_Tp>&, const valarray<_Tp>&)'
 1205 | _DEFINE_BINARY_OPERATOR(>>, __shift_right)
      | ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/valarray:1205:1: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::valarray<_Tp>'
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/valarray:1205:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__shift_right, std::_ValArray, std::_Constant, _Tp, _Tp>, typename std::__fun<std::__shift_right, _Tp>::result_type> std::operator>>(const valarray<_Tp>&, const typename valarray<_Tp>::value_type&)'
 1205 | _DEFINE_BINARY_OPERATOR(>>, __shift_right)
      | ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/valarray:1205:1: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'const std::valarray<_Tp>'
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/valarray:1205:1: note: candidate: 'template<class _Tp> std::_Expr<std::__detail::_BinClos<std::__shift_right, std::_Constant, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__shift_right, _Tp>::result_type> std::operator>>(const typename valarray<_Tp>::value_type&, const valarray<_Tp>&)'
 1205 | _DEFINE_BINARY_OPERATOR(>>, __shift_right)
      | ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/valarray:1205:1: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'const std::valarray<_Tp>' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
In file included from /usr/include/c++/13/random:53,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:179:
/usr/include/c++/13/bits/random.tcc:930:5: note: candidate: 'template<class _IntType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, uniform_int_distribution<_IntType>&)'
  930 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:930:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'std::uniform_int_distribution<_IntType>' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/bits/random.tcc:991:5: note: candidate: 'template<class _RealType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, uniform_real_distribution<_RealType>&)'
  991 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:991:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'std::uniform_real_distribution<_RealType>' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/bits/random.tcc:2168:5: note: candidate: 'template<class _RealType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, cauchy_distribution<_RealType>&)'
 2168 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:2168:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'std::cauchy_distribution<_RealType>' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
In file included from /usr/include/c++/13/random:51:
/usr/include/c++/13/bits/random.h:3830:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, bernoulli_distribution&)'
 3830 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/usr/include/c++/13/bits/random.h:3830:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   cannot convert 'c' (type 'll' {aka '__int128'}) to type 'std::bernoulli_distribution&'
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/bits/random.tcc:1133:5: note: candidate: 'template<class _IntType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, geometric_distribution<_IntType>&)'
 1133 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:1133:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'std::geometric_distribution<_IntType>' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/bits/random.tcc:1784:5: note: candidate: 'template<class _RealType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, exponential_distribution<_RealType>&)'
 1784 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:1784:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'std::exponential_distribution<_RealType>' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/bits/random.tcc:2562:5: note: candidate: 'template<class _RealType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, weibull_distribution<_RealType>&)'
 2562 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:2562:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'std::weibull_distribution<_RealType>' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/bits/random.tcc:2636:5: note: candidate: 'template<class _RealType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, extreme_value_distribution<_RealType>&)'
 2636 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:2636:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'std::extreme_value_distribution<_RealType>' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/bits/random.tcc:177:5: note: candidate: 'template<class _UIntType, _UIntType __a, _UIntType __c, _UIntType __m, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, linear_congruential_engine<_UIntType, __a, __c, __m>&)'
  177 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:177:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'std::linear_congruential_engine<_UIntType, __a, __c, __m>' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/bits/random.tcc:504:5: note: candidate: 'template<class _UIntType1, long unsigned int __w1, long unsigned int __n1, long unsigned int __m1, long unsigned int __r1, _UIntType1 __a1, long unsigned int __u1, _UIntType1 __d1, long unsigned int __s1, _UIntType1 __b1, long unsigned int __t1, _UIntType1 __c1, long unsigned int __l1, _UIntType1 __f1, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, mersenne_twister_engine<_UIntType1, __w1, __n1, __m1, __r1, __a1, __u1, __d1, __s1, __b1, __t1, __c1, __l1, __f1>&)'
  504 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:504:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'std::mersenne_twister_engine<_UIntType1, __w1, __n1, __m1, __r1, __a1, __u1, __d1, __s1, __b1, __t1, __c1, __l1, __f1>' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/bits/random.tcc:659:5: note: candidate: 'template<class _UIntType, long unsigned int __w, long unsigned int __s, long unsigned int __r, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, subtract_with_carry_engine<_UIntType, __w, __s, __r>&)'
  659 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:659:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'std::subtract_with_carry_engine<_UIntType, __w, __s, __r>' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/bits/random.tcc:726:5: note: candidate: 'template<class _RandomNumberEngine, long unsigned int __p, long unsigned int __r, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, discard_block_engine<_RandomNumberEngine, __p, __r>&)'
  726 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:726:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'std::discard_block_engine<_RandomNumberEngine, __p, __r>' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/bits/random.tcc:890:5: note: candidate: 'template<class _RandomNumberEngine, long unsigned int __k, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, shuffle_order_engine<_RandomNumberEngine, __k>&)'
  890 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:890:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'std::shuffle_order_engine<_RandomNumberEngine, __k>' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/bits/random.tcc:1248:5: note: candidate: 'template<class _IntType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, negative_binomial_distribution<_IntType>&)'
 1248 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:1248:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'std::negative_binomial_distribution<_IntType>' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/bits/random.tcc:1458:5: note: candidate: 'template<class _IntType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, poisson_distribution<_IntType>&)'
 1458 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:1458:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'std::poisson_distribution<_IntType>' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/bits/random.tcc:1725:5: note: candidate: 'template<class _IntType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, binomial_distribution<_IntType>&)'
 1725 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:1725:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'std::binomial_distribution<_IntType>' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/bits/random.tcc:1946:5: note: candidate: 'template<class _RealType1, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, normal_distribution<_RealType>&)'
 1946 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:1946:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'std::normal_distribution<_RealType>' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/bits/random.tcc:2011:5: note: candidate: 'template<class _RealType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, lognormal_distribution<_RealType>&)'
 2011 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:2011:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'std::lognormal_distribution<_RealType>' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/bits/random.tcc:2082:5: note: candidate: 'template<class _RealType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, chi_squared_distribution<_RealType>&)'
 2082 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:2082:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'std::chi_squared_distribution<_RealType>' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/bits/random.tcc:2244:5: note: candidate: 'template<class _RealType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, fisher_f_distribution<_RealType>&)'
 2244 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:2244:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'std::fisher_f_distribution<_RealType>' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/bits/random.tcc:2317:5: note: candidate: 'template<class _RealType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, student_t_distribution<_RealType>&)'
 2317 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:2317:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'std::student_t_distribution<_RealType>' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/bits/random.tcc:2487:5: note: candidate: 'template<class _RealType1, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, gamma_distribution<_RealType>&)'
 2487 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:2487:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'std::gamma_distribution<_RealType>' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/bits/random.tcc:2795:5: note: candidate: 'template<class _IntType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, discrete_distribution<_IntType>&)'
 2795 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:2795:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'std::discrete_distribution<_IntType>' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/bits/random.tcc:3002:5: note: candidate: 'template<class _RealType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, piecewise_constant_distribution<_RealType>&)'
 3002 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:3002:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'std::piecewise_constant_distribution<_RealType>' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
/usr/include/c++/13/bits/random.tcc:3208:5: note: candidate: 'template<class _RealType, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, piecewise_linear_distribution<_RealType>&)'
 3208 |     operator>>(std::basic_istream<_CharT, _Traits>& __is,
      |     ^~~~~~~~
/usr/include/c++/13/bits/random.tcc:3208:5: note:   template argument deduction/substitution failed:
diameter.cpp:174:26: note:   mismatched types 'std::piecewise_linear_distribution<_RealType>' and 'll' {aka '__int128'}
  174 |         cin >> a >> b >> c;
      |                          ^
diameter.cpp:188:18: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'll' {aka '__int128'})
  188 |         cin >> d >> e;
      |         ~~~~~~~~ ^~ ~
      |             |       |
      |             |       ll {aka __int128}
      |             std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}
/usr/include/c++/13/istream:325:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  325 |       operator>>(void*& __p)
      |       ^~~~~~~~
/usr/include/c++/13/istream:325:7: note:   conversion of argument 1 would be ill-formed:
diameter.cpp:188:21: error: invalid conversion from 'll' {aka '__int128'} to 'void*' [-fpermissive]
  188 |         cin >> d >> e;
      |                     ^
      |                     |
      |                     ll {aka __int128}
diameter.cpp:188:21: error: cannot bind rvalue '(void*)((long int)e)' to 'void*&'
/usr/include/c++/13/istream:224:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
  224 |       operator>>(long double& __f)
      |       ^~~~~~~~
/usr/include/c++/13/istream:224:7: note:   conversion of argument 1 would be ill-formed:
diameter.cpp:188:21: error: cannot bind non-const lvalue reference of type 'long double&' to a value of type 'll' {aka '__int128'}
  188 |         cin >> d >> e;
      |                     ^
/usr/include/c++/13/istream:220:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near