diff --git a/math/modular_inverse_simple.cpp b/math/modular_inverse_simple.cpp index b0df7d02b..9f5aab005 100644 --- a/math/modular_inverse_simple.cpp +++ b/math/modular_inverse_simple.cpp @@ -27,7 +27,8 @@ using namespace std; * @returns the modular inverse */ int imod(int x, int y) { - int aux, itr = 0; + int aux; + int itr = 0; do { // run the algorithm while not find the inverse aux = y * itr + 1;