diff --git a/03 Basic Sorting /selection_sort.cpp b/03 Basic Sorting /selection_sort.cpp index eafb41d..69832dc 100644 --- a/03 Basic Sorting /selection_sort.cpp +++ b/03 Basic Sorting /selection_sort.cpp @@ -6,7 +6,7 @@ void selection_sort(int a[],int n){ for(int pos = 0; pos <= n-2; pos++){ - int current = a[pos]; + int min_position = pos; //find out the element @@ -35,4 +35,4 @@ int main(){ } return 0; -} \ No newline at end of file +}