제출 #515688

#제출 시각아이디문제언어결과실행 시간메모리
515688pokmui9909통행료 (APIO13_toll)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; using ll = long long; #define x first #define y second class UnionFind{ public: UnionFind(ll S){ p.resize(S + 5, -1); } vector<ll> p; ll Find(ll n){ if(p[n] < 0) return n; else return p[n] = Find(p[n]); } void Union(ll a, ll b){ a = Find(a), b = Find(b); if (a == b) return; p[a] += p[b]; p[b] = a; } bool Same(ll a, ll b){ return Find(a) == Find(b); } private: }; ll N, M, K; struct Edge{ ll u, v, c; bool operator<(const Edge &r)const{ return c < r.c; } }; vector<Edge> E; vector<Edge> add; ll P[100005]; UnionFind S(100005); vector<pair<ll, ll>> G[100005]; ll Par[100005]; ll depth[100005]; ll MinCost[100005]; ll cnt[100005]; vector<Edge> rem; vector<ll> CG[100005]; vector<Edge> NE; vector<Edge> X; ll NP[100005]; ll num[100005]; ll check[30][30]; void dfs1(ll n, ll p){ Par[n] = p; for(auto i : G[n]){ if(i.x == p) continue; depth[i.x] = depth[n] + 1; dfs1(i.x, n); } } ll sum = 0, Comps = 0; void dfs2(ll n, ll p){ cnt[n] = NP[n]; for(auto i : G[n]){ ll nx = i.x, c = i.y; if(nx == p) continue; dfs2(nx, n); cnt[n] += cnt[nx]; if(c == -1){ sum += MinCost[nx] * cnt[nx]; } } } void dfs3(ll n){ num[n] = Comps; NP[Comps] += P[n]; for(auto j : G[n]){ if(num[j.x]) continue; dfs3(j.x); } } void init(){ for(int i = 0; i < 25; i++){ for(int j = 0; j < 25; j++){ check[i][j] = 1e10; } } for(int i = 0; i < K; i++){ ll u = add[i].u, v = add[i].v; S.Union(u, v); } for(int i = 0; i < E.size(); i++){ ll u = E[i].u, v = E[i].v, c = E[i].c; if(S.Same(u, v)){ rem.push_back({u, v, c}); } else { G[u].push_back({v, c}); G[v].push_back({u, c}); S.Union(u, v); } } for(int i = 1; i <= N; i++){ if(num[i]) continue; Comps++; dfs3(i); } for(int i = 0; i < rem.size(); i++){ ll u = rem[i].u, v = rem[i].v, c = rem[i].c; u = num[u], v = num[v]; if(u == v) continue; if(u > v) swap(u, v); check[u][v] = min(check[u][v], c); } for(int i = 1; i < 25; i++){ for(int j = i + 1; j < 25; j++){ if(check[i][j] >= 1e10) continue; NE.push_back({i, j, check[i][j]}); } } sort(NE.begin(), NE.end()); for(int i = 0; i < add.size(); i++){ add[i].u = num[add[i].u]; add[i].v = num[add[i].v]; } } ll Solve(ll bit){ for(int i = 0; i < 25; i++){ G[i].clear(); MinCost[i] = 1e10; S.p[i] = -1; } X.clear(); for(int i = 0; i < K; i++){ if(bit & (1 << i)){ ll u = add[i].u, v = add[i].v; if(S.Same(u, v)) return -1; S.Union(u, v); G[u].push_back({v, -1}); G[v].push_back({u, -1}); } } for(int i = 0; i < NE.size(); i++){ ll u = NE[i].u, v = NE[i].v, c = NE[i].c; if(S.Same(u, v)){ X.push_back({u, v, c}); continue; } S.Union(u, v); G[u].push_back({v, c}); G[v].push_back({u, c}); } dfs1(1, -1); for(int i = 0; i < X.size(); i++){ ll u = X[i].u, v = X[i].v, c = X[i].c; if(depth[u] < depth[v]) swap(u, v); while(depth[u] > depth[v]){ MinCost[u] = min(MinCost[u], c); u = Par[u]; } while(u != v){ MinCost[u] = min(MinCost[u], c); MinCost[v] = min(MinCost[v], c); u = Par[u]; v = Par[v]; } } sum = 0; dfs2(1, 0); return sum; } int main(){ cin.tie(0) -> sync_with_stdio(false); cin >> N >> M >> K; for(int i = 1; i <= M; i++){ ll u, v, c; cin >> u >> v >> c; E.push_back({u, v, c}); } for(int i = 1; i <= K; i++){ ll u, v; cin >> u >> v; add.push_back({u, v}); } for(int i = 1; i <= N; i++){ cin >> P[i]; } sort(E.begin(), E.end()); init(); assert(Comps <= 25 && NE <= 90); ll ans = 0; for(int i = 0; i < (1 << K); i++){ ans = max(ans, Solve(i)); } cout << ans; }

컴파일 시 표준 에러 (stderr) 메시지

toll.cpp: In function 'void init()':
toll.cpp:89:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Edge>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   89 |     for(int i = 0; i < E.size(); i++){
      |                    ~~^~~~~~~~~~
toll.cpp:104:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Edge>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  104 |     for(int i = 0; i < rem.size(); i++){
      |                    ~~^~~~~~~~~~~~
toll.cpp:118:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Edge>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  118 |     for(int i = 0; i < add.size(); i++){
      |                    ~~^~~~~~~~~~~~
toll.cpp: In function 'll Solve(ll)':
toll.cpp:140:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Edge>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  140 |     for(int i = 0; i < NE.size(); i++){
      |                    ~~^~~~~~~~~~~
toll.cpp:151:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Edge>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  151 |     for(int i = 0; i < X.size(); i++){
      |                    ~~^~~~~~~~~~
In file included from /usr/include/c++/10/cassert:44,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
                 from toll.cpp:1:
toll.cpp: In function 'int main()':
toll.cpp:187:30: error: no match for 'operator<=' (operand types are 'std::vector<Edge>' and 'int')
  187 |     assert(Comps <= 25 && NE <= 90);
      |                           ~~ ^~ ~~
      |                           |     |
      |                           |     int
      |                           std::vector<Edge>
In file included from /usr/include/c++/10/regex:62,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:110,
                 from toll.cpp:1:
/usr/include/c++/10/bits/regex.h:1086:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator<=(const std::__cxx11::sub_match<_BiIter>&, const std::__cxx11::sub_match<_BiIter>&)'
 1086 |     operator<=(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs)
      |     ^~~~~~~~
/usr/include/c++/10/bits/regex.h:1086:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/10/cassert:44,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
                 from toll.cpp:1:
toll.cpp:187:33: note:   'std::vector<Edge>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
  187 |     assert(Comps <= 25 && NE <= 90);
      |                                 ^~
In file included from /usr/include/c++/10/regex:62,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:110,
                 from toll.cpp:1:
/usr/include/c++/10/bits/regex.h:1192:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<=(std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const std::__cxx11::sub_match<_BiIter>&)'
 1192 |     operator<=(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs,
      |     ^~~~~~~~
/usr/include/c++/10/bits/regex.h:1192:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/10/cassert:44,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
                 from toll.cpp:1:
toll.cpp:187:33: note:   'std::vector<Edge>' is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>'
  187 |     assert(Comps <= 25 && NE <= 90);
      |                                 ^~
In file included from /usr/include/c++/10/regex:62,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:110,
                 from toll.cpp:1:
/usr/include/c++/10/bits/regex.h:1285:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator<=(const std::__cxx11::sub_match<_BiIter>&, std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)'
 1285 |     operator<=(const sub_match<_Bi_iter>& __lhs,
      |     ^~~~~~~~
/usr/include/c++/10/bits/regex.h:1285:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/10/cassert:44,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
                 from toll.cpp:1:
toll.cpp:187:33: note:   'std::vector<Edge>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
  187 |     assert(Comps <= 25 && NE <= 90);
      |                                 ^~
In file included from /usr/include/c++/10/regex:62,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:110,
                 from toll.cpp:1:
/usr/include/c++/10/bits/regex.h:1359:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<=(const typename std::iterator_traits<_Iter>::value_type*, const std::__cxx11::sub_match<_BiIter>&)'
 1359 |     operator<=(typename iterator_traits<_Bi_iter>::value_type const* __lhs,
      |     ^~~~~~~~
/usr/include/c++/10/bits/regex.h:1359:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/10/cassert:44,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
                 from toll.cpp:1:
toll.cpp:187:33: note:   mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int'
  187 |     assert(Comps <= 25 && NE <= 90);
      |                                 ^~
In file included from /usr/include/c++/10/regex:62,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:110,
                 from toll.cpp:1:
/usr/include/c++/10/bits/regex.h:1453:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<=(const std::__cxx11::sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)'
 1453 |     operator<=(const sub_match<_Bi_iter>& __lhs,
      |     ^~~~~~~~
/usr/include/c++/10/bits/regex.h:1453:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/10/cassert:44,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
                 from toll.cpp:1:
toll.cpp:187:33: note:   'std::vector<Edge>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
  187 |     assert(Comps <= 25 && NE <= 90);
      |                                 ^~
In file included from /usr/include/c++/10/regex:62,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:110,
                 from toll.cpp:1:
/usr/include/c++/10/bits/regex.h:1531:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<=(const typename std::iterator_traits<_Iter>::value_type&, const std::__cxx11::sub_match<_BiIter>&)'
 1531 |     operator<=(typename iterator_traits<_Bi_iter>::value_type const& __lhs,
      |     ^~~~~~~~
/usr/include/c++/10/bits/regex.h:1531:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/10/cassert:44,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
                 from toll.cpp:1:
toll.cpp:187:33: note:   mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int'
  187 |     assert(Comps <= 25 && NE <= 90);
      |                                 ^~
In file included from /usr/include/c++/10/regex:62,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:110,
                 from toll.cpp:1:
/usr/include/c++/10/bits/regex.h:1631:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator<=(const std::__cxx11::sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&)'
 1631 |     operator<=(const sub_match<_Bi_iter>& __lhs,
      |     ^~~~~~~~
/usr/include/c++/10/bits/regex.h:1631:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/10/cassert:44,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
                 from toll.cpp:1:
toll.cpp:187:33: note:   'std::vector<Edge>' is not derived from 'const std::__cxx11::sub_match<_BiIter>'
  187 |     assert(Comps <= 25 && NE <= 90);
      |                                 ^~
In file included from /usr/include/c++/10/bits/stl_algobase.h:64,
                 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 toll.cpp:1:
/usr/include/c++/10/bits/stl_pair.h:508:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<=(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)'
  508 |     operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
      |     ^~~~~~~~
/usr/include/c++/10/bits/stl_pair.h:508:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/10/cassert:44,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
                 from toll.cpp:1:
toll.cpp:187:33: note:   'std::vector<Edge>' is not derived from 'const std::pair<_T1, _T2>'
  187 |     assert(Comps <= 25 && NE <= 90);
      |                                 ^~
In file included from /usr/include/c++/10/bits/stl_algobase.h:67,
                 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 toll.cpp:1:
/usr/include/c++/10/bits/stl_iterator.h:384:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)'
  384 |     operator<=(const reverse_iterator<_Iterator>& __x,
      |     ^~~~~~~~
/usr/include/c++/10/bits/stl_iterator.h:384:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/10/cassert:44,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
                 from toll.cpp:1:
toll.cpp:187:33: note:   'std::vector<Edge>' is not derived from 'const std::reverse_iterator<_Iterator>'
  187 |     assert(Comps <= 25 && NE <= 90);
      |                                 ^~
In file included from /usr/include/c++/10/bits/stl_algobase.h:67,
                 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 toll.cpp:1:
/usr/include/c++/10/bits/stl_iterator.h:422:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)'
  422 |     operator<=(const reverse_iterator<_IteratorL>& __x,
      |     ^~~~~~~~
/usr/include/c++/10/bits/stl_iterator.h:422:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/10/cassert:44,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
                 from toll.cpp:1:
toll.cpp:187:33: note:   'std::vector<Edge>' is not derived from 'const std::reverse_iterator<_Iterator>'
  187 |     assert(Comps <= 25 && NE <= 90);
      |                                 ^~
In file included from /usr/include/c++/10/bits/stl_algobase.h:67,
                 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 toll.cpp:1:
/usr/include/c++/10/bits/stl_iterator.h:1460:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<=(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorR>&)'
 1460 |     operator<=(const move_iterator<_IteratorL>& __x,
      |     ^~~~~~~~
/usr/include/c++/10/bits/stl_iterator.h:1460:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/10/cassert:44,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
                 from toll.cpp:1:
toll.cpp:187:33: note:   'std::vector<Edge>' is not derived from 'const std::move_iterator<_IteratorL>'
  187 |     assert(Comps <= 25 && NE <= 90);
      |                                 ^~
In file included from /usr/include/c++/10/bits/stl_algobase.h:67,
                 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 toll.cpp:1:
/usr/include/c++/10/bits/stl_iterator.h:1513:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<=(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorL>&)'
 1513 |     operator<=(const move_iterator<_Iterator>& __x,
      |     ^~~~~~~~
/usr/include/c++/10/bits/stl_iterator.h:1513:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/10/cassert:44,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
                 from toll.cpp:1:
toll.cpp:187:33: note:   'std::vector<Edge>' is not derived from 'const std::move_iterator<_IteratorL>'
  187 |     assert(Comps <= 25 && NE <= 90);
      |                                 ^~
In file included from /usr/include/c++/10/bits/basic_string.h:48,
                 from /usr/include/c++/10/string:55,
                 from /usr/include/c++/10/bits/locale_classes.h:40,
                 from /usr/include/c++/10/bits/ios_base.h:41,
                 from /usr/include/c++/10/ios:42,
                 from /usr/include/c++/10/istream:38,
                 from /usr/include/c++/10/sstream:38,
                 from /usr/include/c++/10/complex:45,
                 from /usr/include/c++/10/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
                 from toll.cpp:1:
/usr/include/c++/10/string_view:582:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<=(std::basic_string_view<_CharT, _Traits>, std::basic_string_view<_CharT, _Traits>)'
  582 |     operator<=(basic_string_view<_CharT, _Traits> __x,
      |     ^~~~~~~~
/usr/include/c++/10/string_view:582:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/10/cassert:44,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
                 from toll.cpp:1:
toll.cpp:187:33: note:   'std::vector<Edge>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
  187 |     assert(Comps <= 25 && NE <= 90);
      |                                 ^~
In file included from /usr/include/c++/10/bits/basic_string.h:48,
                 from /usr/include/c++/10/string:55,
                 from /usr/include/c++/10/bits/locale_classes.h:40,
                 from /usr/include/c++/10/bits/ios_base.h:41,
                 from /usr/include/c++/10/ios:42,
                 from /usr/include/c++/10/istream:38,
                 from /usr/include/c++/10/sstream:38,
                 from /usr/include/c++/10/complex:45,
                 from /usr/include/c++/10/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
                 from toll.cpp:1:
/usr/include/c++/10/string_view:588:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<=(std::basic_string_view<_CharT, _Traits>, std::__type_identity_t<std::basic_string_view<_CharT, _Traits> >)'
  588 |     operator<=(basic_string_view<_CharT, _Traits> __x,
      |     ^~~~~~~~
/usr/include/c++/10/string_view:588:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/10/cassert:44,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
                 from toll.cpp:1:
toll.cpp:187:33: note:   'std::vector<Edge>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
  187 |     assert(Comps <= 25 && NE <= 90);
      |                                 ^~
In file included from /usr/include/c++/10/bits/basic_string.h:48,
                 from /usr/include/c++/10/string:55,
                 from /usr/include/c++/10/bits/locale_classes.h:40,
                 from /usr/include/c++/10/bits/ios_base.h:41,
                 from /usr/include/c++/10/ios:42,
                 from /usr/include/c++/10/istream:38,
                 from /usr/include/c++/10/sstream:38,
                 from /usr/include/c++/10/complex:45,
                 from /usr/include/c++/10/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
                 from toll.cpp:1:
/usr/include/c++/10/string_view:595:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<=(std::__type_identity_t<std::basic_string_view<_CharT, _Traits> >, std::basic_string_view<_CharT, _Traits>)'
  595 |     operator<=(__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
      |     ^~~~~~~~
/usr/include/c++/10/string_view:595:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/10/cassert:44,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
                 from toll.cpp:1:
toll.cpp:187:33: note:   mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int'
  187 |     assert(Comps <= 25 && NE <= 90);
      |                                 ^~
In file included from /usr/include/c++/10/string:55,
                 from /usr/include/c++/10/bits/locale_classes.h:40,
                 from /usr/include/c++/10/bits/ios_base.h:41,
                 from /usr/include/c++/10/ios:42,
                 from /usr/include/c++/10/istream:38,
                 from /usr/include/c++/10/sstream:38,
                 from /usr/