Skip to content

Commit 2c79947

Browse files
authored
Merge pull request #164 from inesane/master
Fixed Errors in cycleSort.cpp
2 parents 35c9540 + d83b5f5 commit 2c79947

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sortingAlgo/cycleSort/cycleSort.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,12 @@ void cycleSort(int *arr,int n)
3939
}
4040
int main()
4141
{
42-
int arr = {20,30,10,20,70};
42+
int arr[] = {20,30,10,20,70};
4343
int n = 5;
4444
cycleSort(arr,n);
45+
for (int i = 0; i < n; i++){
46+
cout << arr[i] << ' ';
47+
}
48+
cout << endl;
4549
}
4650

0 commit comments

Comments
 (0)