Main.cpp: In function 'void update(std::pair<__int128, __int128>)':
Main.cpp:91:25: error: call of overloaded 'abs(__int128)' is ambiguous
91 | lll x1 = abs(i.first + i.second);
| ~~~^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/std_abs.h:38,
from /usr/include/c++/11/cmath:47,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from Main.cpp:1:
/usr/include/stdlib.h:848:12: note: candidate: 'int abs(int)'
848 | extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
| ^~~
Main.cpp:53:5: note: candidate: '__int128 abs(__int128)'
53 | lll abs(lll a){
| ^~~
In file included from /usr/include/c++/11/cmath:47,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from Main.cpp:1:
/usr/include/c++/11/bits/std_abs.h:103:3: note: candidate: 'constexpr __float128 std::abs(__float128)'
103 | abs(__float128 __x)
| ^~~
/usr/include/c++/11/bits/std_abs.h:85:3: note: candidate: 'constexpr __int128 std::abs(__int128)'
85 | abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
| ^~~
/usr/include/c++/11/bits/std_abs.h:79:3: note: candidate: 'constexpr long double std::abs(long double)'
79 | abs(long double __x)
| ^~~
/usr/include/c++/11/bits/std_abs.h:75:3: note: candidate: 'constexpr float std::abs(float)'
75 | abs(float __x)
| ^~~
/usr/include/c++/11/bits/std_abs.h:71:3: note: candidate: 'constexpr double std::abs(double)'
71 | abs(double __x)
| ^~~
/usr/include/c++/11/bits/std_abs.h:61:3: note: candidate: 'long long int std::abs(long long int)'
61 | abs(long long __x) { return __builtin_llabs (__x); }
| ^~~
/usr/include/c++/11/bits/std_abs.h:56:3: note: candidate: 'long int std::abs(long int)'
56 | abs(long __i) { return __builtin_labs(__i); }
| ^~~
Main.cpp:92:25: error: call of overloaded 'abs(__int128)' is ambiguous
92 | lll x2 = abs(v.first + v.second);
| ~~~^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/std_abs.h:38,
from /usr/include/c++/11/cmath:47,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from Main.cpp:1:
/usr/include/stdlib.h:848:12: note: candidate: 'int abs(int)'
848 | extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
| ^~~
Main.cpp:53:5: note: candidate: '__int128 abs(__int128)'
53 | lll abs(lll a){
| ^~~
In file included from /usr/include/c++/11/cmath:47,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from Main.cpp:1:
/usr/include/c++/11/bits/std_abs.h:103:3: note: candidate: 'constexpr __float128 std::abs(__float128)'
103 | abs(__float128 __x)
| ^~~
/usr/include/c++/11/bits/std_abs.h:85:3: note: candidate: 'constexpr __int128 std::abs(__int128)'
85 | abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
| ^~~
/usr/include/c++/11/bits/std_abs.h:79:3: note: candidate: 'constexpr long double std::abs(long double)'
79 | abs(long double __x)
| ^~~
/usr/include/c++/11/bits/std_abs.h:75:3: note: candidate: 'constexpr float std::abs(float)'
75 | abs(float __x)
| ^~~
/usr/include/c++/11/bits/std_abs.h:71:3: note: candidate: 'constexpr double std::abs(double)'
71 | abs(double __x)
| ^~~
/usr/include/c++/11/bits/std_abs.h:61:3: note: candidate: 'long long int std::abs(long long int)'
61 | abs(long long __x) { return __builtin_llabs (__x); }
| ^~~
/usr/include/c++/11/bits/std_abs.h:56:3: note: candidate: 'long int std::abs(long int)'
56 | abs(long __i) { return __builtin_labs(__i); }
| ^~~
Main.cpp:112:20: error: call of overloaded 'abs(__int128&)' is ambiguous
112 | lll g = gcd(abs(gg[0].second), abs(gg[1].second));
| ~~~^~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/std_abs.h:38,
from /usr/include/c++/11/cmath:47,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from Main.cpp:1:
/usr/include/stdlib.h:848:12: note: candidate: 'int abs(int)'
848 | extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
| ^~~
Main.cpp:53:5: note: candidate: '__int128 abs(__int128)'
53 | lll abs(lll a){
| ^~~
In file included from /usr/include/c++/11/cmath:47,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from Main.cpp:1:
/usr/include/c++/11/bits/std_abs.h:103:3: note: candidate: 'constexpr __float128 std::abs(__float128)'
103 | abs(__float128 __x)
| ^~~
/usr/include/c++/11/bits/std_abs.h:85:3: note: candidate: 'constexpr __int128 std::abs(__int128)'
85 | abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
| ^~~
/usr/include/c++/11/bits/std_abs.h:79:3: note: candidate: 'constexpr long double std::abs(long double)'
79 | abs(long double __x)
| ^~~
/usr/include/c++/11/bits/std_abs.h:75:3: note: candidate: 'constexpr float std::abs(float)'
75 | abs(float __x)
| ^~~
/usr/include/c++/11/bits/std_abs.h:71:3: note: candidate: 'constexpr double std::abs(double)'
71 | abs(double __x)
| ^~~
/usr/include/c++/11/bits/std_abs.h:61:3: note: candidate: 'long long int std::abs(long long int)'
61 | abs(long long __x) { return __builtin_llabs (__x); }
| ^~~
/usr/include/c++/11/bits/std_abs.h:56:3: note: candidate: 'long int std::abs(long int)'
56 | abs(long __i) { return __builtin_labs(__i); }
| ^~~
Main.cpp:112:39: error: call of overloaded 'abs(__int128&)' is ambiguous
112 | lll g = gcd(abs(gg[0].second), abs(gg[1].second));
| ~~~^~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/std_abs.h:38,
from /usr/include/c++/11/cmath:47,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from Main.cpp:1:
/usr/include/stdlib.h:848:12: note: candidate: 'int abs(int)'
848 | extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
| ^~~
Main.cpp:53:5: note: candidate: '__int128 abs(__int128)'
53 | lll abs(lll a){
| ^~~
In file included from /usr/include/c++/11/cmath:47,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from Main.cpp:1:
/usr/include/c++/11/bits/std_abs.h:103:3: note: candidate: 'constexpr __float128 std::abs(__float128)'
103 | abs(__float128 __x)
| ^~~
/usr/include/c++/11/bits/std_abs.h:85:3: note: candidate: 'constexpr __int128 std::abs(__int128)'
85 | abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
| ^~~
/usr/include/c++/11/bits/std_abs.h:79:3: note: candidate: 'constexpr long double std::abs(long double)'
79 | abs(long double __x)
| ^~~
/usr/include/c++/11/bits/std_abs.h:75:3: note: candidate: 'constexpr float std::abs(float)'
75 | abs(float __x)
| ^~~
/usr/include/c++/11/bits/std_abs.h:71:3: note: candidate: 'constexpr double std::abs(double)'
71 | abs(double __x)
| ^~~
/usr/include/c++/11/bits/std_abs.h:61:3: note: candidate: 'long long int std::abs(long long int)'
61 | abs(long long __x) { return __builtin_llabs (__x); }
| ^~~
/usr/include/c++/11/bits/std_abs.h:56:3: note: candidate: 'long int std::abs(long int)'
56 | abs(long __i) { return __builtin_labs(__i); }
| ^~~