diff --git a/template.cc b/template.cc index e0ac325..b33e37f 100644 --- a/template.cc +++ b/template.cc @@ -289,9 +289,9 @@ ll qpow(ll b, ll p, ll mod) { } -// Accurately find `i` 'th root of `n` (taking the floor) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wparentheses" +// Accurately find `i` 'th root of `n` (taking the floor) inline ll root(ll n, ll i) { ll l = 0, r = pow(LLONG_MAX, ld(1) / i); while (l < r) {