diff --git a/BinarySearch1Spoj b/BinarySearch1Spoj index f2426be..da87ae7 100644 --- a/BinarySearch1Spoj +++ b/BinarySearch1Spoj @@ -14,6 +14,7 @@ int main () scanf ("%d", &X); //read the number we are searching result=-1; + Left=0; Right=n-1; while (Left <= Right) {