# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1278379 | Ice_man | Harbingers (CEOI09_harbingers) | C++20 | Compilation error | 0 ms | 0 KiB |
/**
____ ____ ____ __________________ ____ ____ ____
||I || ||c || ||e || || || ||M || ||a || ||n ||
||__|| ||__|| ||__|| ||________________|| ||__|| ||__|| ||__||
|/__\| |/__\| |/__\| |/________________\| |/__\| |/__\| |/__\|
*/
#include <iostream>
#include <chrono>
#include <vector>
#define maxn 200005
#define maxlog 20
#define INF 1000000010
#define LINF 1000000000000000005
#define endl '\n'
#define PB push_back
#define X first
#define Y second
#define control cout<<"passed"<<endl;
typedef __int128_t ll;
typedef std::pair <ll, ll> pll;
typedef std::pair <ll, ll> pil;
typedef std::pair <ll, ll> pli;
typedef long double ld;
struct CHT
{
std::vector <pll> hull;
ll calc(pll curr, ll x)
{
return curr.X * x + curr.Y;
}
double llersection(pll a, pll b)
{
return (double)(b.Y - a.Y) / (a.X - b.X);
}
void add_line(pll curr)
{
while(hull.size() >= 2)
{
if(llersection(hull[hull.size() - 2], hull.back()) >= llersection(hull.back(), curr))
hull.pop_back();
else
break;
}
hull.PB(curr);
}
ll query(double x)
{
if(hull.size() == 0)
return 1e18;
ll l = 0, r = hull.size() - 1;
while(l < r)
{
ll mid = (l + r) / 2;
if(calc(hull[mid], x) > calc(hull[mid + 1], x))
l = mid + 1;
else
r = mid;
}
return calc(hull[l], x);
}
};
std::vector <pll> v[maxn];
ll depth[maxn], sz[maxn], up[maxn], lead[maxn];
std::vector <ll> d[maxn];
ll dist[maxn];
void dfs_sz(ll node, ll par)
{
d[depth[node]].PB(node);
up[node] = par;
sz[node] = 1;
for(auto& nb : v[node])
{
if(nb.X == par)
continue;
depth[nb.X] = depth[node] + 1;
dist[nb.X] = dist[node] + nb.Y;
dfs_sz(nb.X, node);
sz[node] += sz[nb.X];
}
}
ll heavy[maxn];
ll cnt = 0;
void dfs_hld(ll node, ll par, ll le)
{
//std::cout << node << " " << par << " " << le << "\n";
lead[node] = le;
heavy[node] = -1;
for(auto& nb : v[node])
{
if(nb.X == par)
continue;
if(heavy[node] == -1 || (sz[nb.X] > sz[heavy[node]] && nb.X != par))
heavy[node] = nb.X;
}
//std::cout << "!! " << heavy[node] << "\n";
if(heavy[node] == -1)
return;
dfs_hld(heavy[node], node, le);
for(auto& nb : v[node])
if(nb.X != par && nb.X != heavy[node])
dfs_hld(nb.X, node, nb.X);
}
CHT h[maxn];
ll speed[maxn], wait[maxn];
ll answer(ll node)
{
//std::cout << "------------------------------" << "\n";
//std::cout << node << "\n";
ll ans = 1e18;
ll start = node;
while(node != 1)
{
/**std::cout << node << "\n";
std::cout << h[lead[node]].query(speed[start]) << "\n";
std::cout << "!!!!!" << "\n" << speed[node] << ": ";
for(auto& e : h[lead[node]].hull)
std::cout << "{ " << e.X << " " << e.Y << " } ";
std::cout << "\n";
std::cout << "!!!!!" << "\n";*/
ans = std::min(ans, h[lead[node]].query(speed[start]));
node = lead[node];
if(node == 1)
break;
node = up[node];
}
return ans;
}
ll n;
ll dp[maxn];
void read()
{
std::cin >> n;
for(ll i = 1; i <= n - 1; i++)
{
ll x, y, z;
std::cin >> x >> y >> z;
v[x].PB({y, z});
v[y].PB({x, z});
}
for(ll i = 1; i <= n - 1; i++)
std::cin >> wait[i + 1] >> speed[i + 1];
depth[1] = 0;
dfs_sz(1, 0);
//std::cout << "here" << "\n";
dfs_hld(1, 0, 1);
//std::cout << "here" << "\n";
dp[1] = 0;
for(ll i = 1; i <= n - 1; i++)
{
//std::cout << "****************************" << "\n";
for(auto& node : d[i])
{
dp[node] = wait[node] + speed[node] * dist[node];
//std::cout << "?------? " << node << " " << answer(node) << " " << dist[node] * speed[node] + wait[node] << "\n";
dp[node] = std::min(dp[node], answer(node) + dist[node] * speed[node] + wait[node]);
}
for(auto& node : d[i])
h[lead[node]].add_line({-dist[node], dp[node]});
}
for(ll i = 2; i <= n; i++)
std::cout << dp[i] << " ";
std::cout << "\n";
}
int main()
{
/**#ifdef ONLINE_JUDGE /// promeni
freopen("taxi.in", "r", stdin);
freopen("taxi.out", "w", stdout);
#endif*/
std::ios_base::sync_with_stdio(false);
std::cin.tie(nullptr);
read();
return 0;
}
Compilation message (stderr)
harbingers.cpp: In function 'void read()': harbingers.cpp:172:14: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'll' {aka '__int128'}) 172 | std::cin >> n; | ~~~~~~~~ ^~ ~ | | | | | ll {aka __int128} | std::istream {aka std::basic_istream<char>} In file included from /usr/include/c++/13/iostream:42, from harbingers.cpp:9: /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: harbingers.cpp:172:17: error: invalid conversion from 'll' {aka '__int128'} to 'void*' [-fpermissive] 172 | std::cin >> n; | ^ | | | ll {aka __int128} harbingers.cpp:172:17: error: cannot bind rvalue '(void*)((long int)n)' 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: harbingers.cpp:172:17: error: cannot bind non-const lvalue reference of type 'long double&' to a value of type 'll' {aka '__int128'} 172 | std::cin >> n; | ^ /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: harbingers.cpp:172:17: error: cannot bind non-const lvalue reference of type 'double&' to a value of type 'll' {aka '__int128'} 172 | std::cin >> n; | ^ /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: harbingers.cpp:172:17: error: cannot bind non-const lvalue reference of type 'float&' to a value of type 'll' {aka '__int128'} 172 | std::cin >> n; | ^ /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: harbingers.cpp:172:17: error: cannot bind non-const lvalue reference of type 'long long unsigned int&' to a value of type 'll' {aka '__int128'} 172 | std::cin >> n; | ^ /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: harbingers.cpp:172:17: error: cannot bind non-const lvalue reference of type 'long long int&' to a value of type 'll' {aka '__int128'} 172 | std::cin >> n; | ^ /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: harbingers.cpp:172:17: error: cannot bind non-const lvalue reference of type 'long unsigned int&' to a value of type 'll' {aka '__int128'} 172 | std::cin >> n; | ^ /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: harbingers.cpp:172:17: error: cannot bind non-const lvalue reference of type 'long int&' to a value of type 'll' {aka '__int128'} 172 | std::cin >> n; | ^ /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: harbingers.cpp:172:17: error: cannot bind non-const lvalue reference of type 'unsigned int&' to a value of type 'll' {aka '__int128'} 172 | std::cin >> n; | ^ /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: harbingers.cpp:172:17: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'll' {aka '__int128'} 172 | std::cin >> n; | ^ /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: harbingers.cpp:172:17: error: cannot bind non-const lvalue reference of type 'short unsigned int&' to a value of type 'll' {aka '__int128'} 172 | std::cin >> n; | ^ /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: harbingers.cpp:172:17: error: cannot bind non-const lvalue reference of type 'short int&' to a value of type 'll' {aka '__int128'} 172 | std::cin >> n; | ^ /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: harbingers.cpp:172:17: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'll' {aka '__int128'} 172 | std::cin >> n; | ^ /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: harbingers.cpp:172:17: 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] 172 | std::cin >> n; | ^ | | | 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: harbingers.cpp:172:17: 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] 172 | std::cin >> n; | ^ | | | 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: harbingers.cpp:172:17: error: invalid conversion from 'll' {aka '__int128'} to 'std::ios_base& (*)(std::ios_base&)' [-fpermissive] 172 | std::cin >> n; | ^ | | | 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: harbingers.cpp:172:17: error: invalid conversion from 'll' {aka '__int128'} to 'std::basic_istream<char>::__streambuf_type*' {aka 'std::basic_streambuf<char>*'} [-fpermissive] 172 | std::cin >> n; | ^ | | | ll {aka __int128} harbingers.cpp:172:14: note: candidate: 'operator>>(int, ll {aka __int128})' (built-in) 172 | std::cin >> n; | ~~~~~~~~~^~~~ harbingers.cpp:172:14: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int' In file included from /usr/include/c++/13/string:55, from /usr/include/c++/13/bits/locale_classes.h:40, from /usr/include/c++/13/bits/ios_base.h:41, from /usr/include/c++/13/ios:44, from /usr/include/c++/13/ostream:40, from /usr/include/c++/13/iostream:41: /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: harbingers.cpp:172:17: note: mismatched types 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'll' {aka '__int128'} 172 | std::cin >> n; | ^ In file included from /usr/include/c++/13/bits/memory_resource.h:38, from /usr/include/c++/13/string:58: /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: harbingers.cpp:172:10: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte' 172 | std::cin >> n; | ~~~~~^~~ 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: harbingers.cpp:172:17: note: deduced conflicting types for parameter '_CharT' ('char' and 'll' {aka '__int128'}) 172 | std::cin >> n; | ^ /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: harbingers.cpp:172:17: note: cannot convert 'n' (type 'll' {aka '__int128'}) to type 'unsigned char&' 172 | std::cin >> n; | ^ /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: harbingers.cpp:172:17: note: cannot convert 'n' (type 'll' {aka '__int128'}) to type 'signed char&' 172 | std::cin >> n; | ^ /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: harbingers.cpp:172:17: note: mismatched types '_CharT [_Num]' and 'll' {aka '__int128'} 172 | std::cin >> n; | ^ /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: harbingers.cpp:172:17: note: mismatched types 'unsigned char [_Num]' and 'll' {aka '__int128'} 172 | std::cin >> n; | ^ /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: harbingers.cpp:172:17: note: mismatched types 'signed char [_Num]' and 'll' {aka '__int128'} 172 | std::cin >> n; | ^ /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&]': harbingers.cpp:172:17: 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 /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&]' harbingers.cpp:172:17: 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> | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/chrono_io.h:38, from /usr/include/c++/13/chrono:3370, from harbingers.cpp:10: /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: harbingers.cpp:172:17: note: cannot convert 'n' (type 'll' {aka '__int128'}) to type 'std::_Resetiosflags' 172 | std::cin >> n; | ^ /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: harbingers.cpp:172:17: note: cannot convert 'n' (type 'll' {aka '__int128'}) to type 'std::_Setiosflags' 172 | std::cin >> n; | ^ /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: harbingers.cpp:172:17: note: cannot convert 'n' (type 'll' {aka '__int128'}) to type 'std::_Setbase' 172 | std::cin >> n; | ^ /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: harbingers.cpp:172:17: note: mismatched types 'std::_Setfill<_CharT>' and '__int128' 172 | std::cin >> n; | ^ /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: harbingers.cpp:172:17: note: cannot convert 'n' (type 'll' {aka '__int128'}) to type 'std::_Setprecision' 172 | std::cin >> n; | ^ /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: harbingers.cpp:172:17: note: cannot convert 'n' (type 'll' {aka '__int128'}) to type 'std::_Setw' 172 | std::cin >> n; | ^ /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: harbingers.cpp:172:17: note: mismatched types 'std::_Get_money<_MoneyT>' and '__int128' 172 | std::cin >> n; | ^ /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: harbingers.cpp:172:17: note: mismatched types 'std::_Get_time<_CharT>' and '__int128' 172 | std::cin >> n; | ^ harbingers.cpp:177:18: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'll' {aka '__int128'}) 177 | std::cin >> x >> y >> z; | ~~~~~~~~ ^~ ~ | | | | | ll {aka __int128} | std::istream {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: harbingers.cpp:177:21: error: invalid conversion from 'll' {aka '__int128'} to 'void*' [-fpermissive] 177 | std::cin >> x >> y >> z; | ^ | | | ll {aka __int128} harbingers.cpp:177:21: error: cannot bind rvalue '(void*)((long int)x)' 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: harbingers.cpp:177:21: error: cannot bind non-const lvalue reference of type 'long double&' to a value of type 'll' {aka '__int128'} 177 | std::cin >> x >> y >> z; | ^ /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: harbingers.cpp:177:21: error: cannot bind non-const lvalue reference of type 'double&' to a value of type 'll' {aka '__int128'} 177 | std::cin >> x >> y >> z; | ^ /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: harbingers.cpp:177:21: error: cannot bind non-const lvalue reference of type 'float&' to a value of type 'll' {aka '__int128'} 177 | std::cin >> x >> y >> z; | ^ /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: harbingers.cpp:177:21: error: cannot bind non-const lvalue reference of type 'long long unsigned int&' to a value of type 'll' {aka '__int128'} 177 | std::cin >> x >> y >> z; | ^ /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: harbingers.cpp:177:21: error: cannot bind non-const lvalue reference of type 'long long int&' to a value of type 'll' {aka '__int128'} 177 | std::cin >> x >> y >> z; | ^ /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: harbingers.cpp:177:21: error: cannot bind non-const lvalue reference of type 'long unsigned int&' to a value of type 'll' {aka '__int128'} 177 | std::cin >> x >> y >> z; | ^ /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: harbingers.cpp:177:21: error: cannot bind non-const lvalue reference of type 'long int&' to a value of type 'll' {aka '__int128'} 177 | std::cin >> x >> y >> z; | ^ /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: harbingers.cpp:177:21: error: cannot bind non-const lvalue reference of type 'unsigned int&' to a value of type 'll' {aka '__int128'} 177 | std::cin >> x >> y >> z; | ^ /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: harbingers.cpp:177:21: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'll' {aka '__int128'} 177 | std::cin >> x >> y >> z; | ^ /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: harbingers.cpp:177:21: error: cannot bind non-const lvalue reference of type 'short unsigned int&' to a value of type 'll' {aka '__int128'} 177 | std::cin >> x >> y >> z; | ^ /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: harbingers.cpp:177:21: error: cannot bind non-const lvalue reference of type 'short int&' to a value of type 'll' {aka '__int128'} 177 | std::cin >> x >> y >> z; | ^ /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: harbingers.cpp:177:21: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'll' {aka '__int128'} 177 | std::cin >> x >> y >> z; | ^ /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: harbingers.cpp:177:21: 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] 177 | std::cin >> x >> y >> z; | ^ | | | 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: harbingers.cpp:177:21: 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] 177 | std::cin >> x >> y >> z; | ^ | | | 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: harbingers.cpp:177:21: error: invalid conversion from 'll' {aka '__int128'} to 'std::ios_base& (*)(std::ios_base&)' [-fpermissive] 177 | std::cin >> x >> y >> z; | ^ | | | 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: harbingers.cpp:177:21: error: invalid conversion from 'll' {aka '__int128'} to 'std::basic_istream<char>::__streambuf_type*' {aka 'std::basic_streambuf<char>*'} [-fpermissive] 177 | std::cin >> x >> y >> z; | ^ | | | ll {aka __int128} harbingers.cpp:177:18: note: candidate: 'operator>>(int, ll {aka __int128})' (built-in) 177 | std::cin >> x >> y >> z; | ~~~~~~~~~^~~~ harbingers.cpp:177:18: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int' /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: harbingers.cpp:177:21: note: mismatched types 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' and 'll' {aka '__int128'} 177 | std::cin >> x >> y >> z; | ^ /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: harbingers.cpp:177:14: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte' 177 | std::cin >> x >> y >> z; | ~~~~~^~~ /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: harbingers.cpp:177:21: note: deduced conflicting types for parameter '_CharT' ('char' and 'll' {aka '__int128'}) 177 | std::cin >> x >> y >> z; | ^ /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: harbingers.cpp:177:21: note: cannot convert 'x' (type 'll' {aka '__int128'}) to type 'unsigned char&' 177 | std::cin >> x >> y >> z; | ^ /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: harbingers.cpp:177:21: note: cannot convert 'x' (type 'll' {aka '__int128'}) to type 'signed char&' 177 | std::cin >> x >> y >> z; | ^ /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: harbingers.cpp:177:21: note: mismatched types '_CharT [_Num]' and 'll' {aka '__int128'} 177 | std::cin >> x >> y >> z; | ^ /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: harbingers.cpp:177:21: note: mismatched types 'unsigned char [_Num]' and 'll' {aka '__int128'} 177 | std::cin >> x >> y >> z; | ^ /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: harbingers.cpp:177:21: note: mismatched types 'signed char [_Num]' and 'll' {aka '__int128'} 177 | std::cin >> x >> y >> z; | ^ /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&]': harbingers.cpp:177:21: 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 /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&]' harbingers.cpp:177:21: 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/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: harbingers.cpp:177:21: note: cannot convert 'x' (type 'll' {aka '__int128'}) to type 'std::_Resetiosflags' 177 | std::cin >> x >> y >> z; | ^ /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: harbingers.cpp:177:21: note: cannot convert 'x' (type 'll' {aka '__int128'}) to type 'std::_Setiosflags' 177 | std::cin >> x >> y >> z; | ^ /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: harbingers.cpp:177:21: note: cannot convert 'x' (type 'll' {aka '__int128'}) to type 'std::_Setbase' 177 | std::cin >> x >> y >> z; | ^ /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: harbingers.cpp:177:21: note: mismatched types 'std::_Setfill<_CharT>' and '__int128' 177 | std::cin >> x >> y >> z; | ^ /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: harbingers.cpp:177:21: note: cannot convert 'x' (type 'll' {aka '__int128'}) to type 'std::_Setprecision' 177 | std::cin >> x >> y >> z; | ^ /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: harbingers.cpp:177:21: note: cannot convert 'x' (type 'll' {aka '__int128'}) to type 'std::_Setw' 177 | std::cin >> x >> y >> z; | ^ /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: harbingers.cpp:177:21: note: mismatched types 'std::_Get_money<_MoneyT>' and '__int128' 177 | std::cin >> x >> y >> z; | ^ /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: harbingers.cpp:177:21: note: mismatched types 'std::_Get_time<_CharT>' and '__int128' 177 | std::cin >> x >> y >> z; | ^ harbingers.cpp:184:18: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'll' {aka '__int128'}) 184 | std::cin >> wait[i + 1] >> speed[i + 1]; | ~~~~~~~~ ^~ ~~~~~~~~~~~ | | | | | ll {aka __int128} | std::istream {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: harbingers.cpp:184:31: error: invalid conversion from 'll' {aka '__int128'} to 'void*' [-fpermissive] 184 | std::cin >> wait[i + 1] >> speed[i + 1]; | ~~~~~~~~~~^ | | | ll {aka __int128} harbingers.cpp:184:31: error: cannot bind rvalue '(void*)((long int)wait[(i + 1)])' 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: harbingers.cpp:184:31: error: cannot bind non-const lvalue reference of type 'long double&' to a value of type 'll' {aka '__int128'} 184 | std::cin >> wait[i + 1] >> speed[i + 1]; | ~~~~~~~~~~^ /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: harbingers.cpp:184:31: error: cannot bind non-const lvalue reference of type 'double&' to a value of type 'll' {aka '__int128'} 184 | std::cin >> wait[i + 1] >> speed[i + 1]; | ~~~~~~~~~~^ /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: harbingers.cpp:184:31: error: cannot bind non-const lvalue reference of type 'float&' to a value of type 'll' {aka '__int128'} 184 | std::cin >> wait[i + 1] >> speed[i + 1]; | ~~~~~~~~~~^ /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: harbingers.cpp:184:31: error: cannot bind non-const lvalue r