remittance.cpp: In function 'void solve()':
remittance.cpp:77:20: error: conversion from 'int' to 'Modint' is ambiguous
77 | Modint denom = 1;
| ^
remittance.cpp:28:5: note: candidate: 'Modint::Modint(__int128)'
28 | Modint(__int128_t _x) {
| ^~~~~~
remittance.cpp:19:5: note: candidate: 'Modint::Modint(long long int)'
19 | Modint(long long _x) {
| ^~~~~~
remittance.cpp:86:23: error: conversion from 'int' to 'Modint' is ambiguous
86 | Modint xmod = 0;
| ^
remittance.cpp:28:5: note: candidate: 'Modint::Modint(__int128)'
28 | Modint(__int128_t _x) {
| ^~~~~~
remittance.cpp:19:5: note: candidate: 'Modint::Modint(long long int)'
19 | Modint(long long _x) {
| ^~~~~~
remittance.cpp:88:37: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} to 'const Modint' is ambiguous
88 | xmod = xmod + xmod + b[j] - a[j];
| ^
remittance.cpp:28:5: note: candidate: 'Modint::Modint(__int128)'
28 | Modint(__int128_t _x) {
| ^~~~~~
remittance.cpp:19:5: note: candidate: 'Modint::Modint(long long int)'
19 | Modint(long long _x) {
| ^~~~~~
remittance.cpp:37:36: note: initializing argument 1 of 'Modint Modint::operator+(const Modint&) const'
37 | Modint operator+(const Modint& other) const {
| ~~~~~~~~~~~~~~^~~~~
remittance.cpp:91:37: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} to 'const Modint' is ambiguous
91 | xmod = xmod + xmod + b[j] - a[j];
| ^
remittance.cpp:28:5: note: candidate: 'Modint::Modint(__int128)'
28 | Modint(__int128_t _x) {
| ^~~~~~
remittance.cpp:19:5: note: candidate: 'Modint::Modint(long long int)'
19 | Modint(long long _x) {
| ^~~~~~
remittance.cpp:37:36: note: initializing argument 1 of 'Modint Modint::operator+(const Modint&) const'
37 | Modint operator+(const Modint& other) const {
| ~~~~~~~~~~~~~~^~~~~
remittance.cpp:93:25: error: call of overloaded 'Modint(int)' is ambiguous
93 | xmod = (Modint(0) - xmod) * denom;
| ^
remittance.cpp:28:5: note: candidate: 'Modint::Modint(__int128)'
28 | Modint(__int128_t _x) {
| ^~~~~~
remittance.cpp:19:5: note: candidate: 'Modint::Modint(long long int)'
19 | Modint(long long _x) {
| ^~~~~~
remittance.cpp:14:8: note: candidate: 'constexpr Modint::Modint(const Modint&)'
14 | struct Modint {
| ^~~~~~