From dd09663ece4b12e4191f9c5b1984080c884e87cf Mon Sep 17 00:00:00 2001 From: Faizan Ahamed Date: Sun, 26 Apr 2020 14:49:01 +0530 Subject: [PATCH] Update Binary Search.cpp --- search/Binary Search.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/search/Binary Search.cpp b/search/Binary Search.cpp index dc46b5e02..71e7c2bd0 100644 --- a/search/Binary Search.cpp +++ b/search/Binary Search.cpp @@ -11,7 +11,7 @@ l = m + 1; } return -1; } -int main(int argc, char const *argv[]) { +int main() { int n, key; std::cout << "Enter size of array: "; std::cin >> n; @@ -24,7 +24,7 @@ std::cout << "Enter search key: "; std::cin >> key; int res = binary_search(a, 0, n - 1, key); if (res != -1) -std::cout << key << " found at index " << res << endl; +std::cout << key << " found at index " << res << std::endl; else std::cout << key << " not found" << endl; return 0;