fork download
  1. #include<iostream>
  2. using namespace std;
  3. // void mergesort(int arr[])
  4. int main(){
  5. int arr[8] = {6,4,7,2,9,8,3,5};
  6. // mergesort(arr,0,8);
  7. for(int i=0;i<8;i++){
  8. cout<<arr[i]<<" ";
  9. }
  10. return 0;
  11. }
Success #stdin #stdout 0.01s 5280KB
stdin
! 6 shirt = 15 sock
! 47 underwear = 9 pant
? sock = shirt
? shirt = pant
! 2 sock = 1 underwear
? pant = shirt
.
stdout
6 4 7 2 9 8 3 5