fork(1) download
  1. void quicksort(int tab2[], int left, int right){
  2.  
  3. int v=tab2[(left+right)/2];
  4. int i,j,x;
  5. i=left;
  6. j=right;
  7. do{
  8. while (tab2[i]<v) i++;
  9. while (tab2[j]>v) j--;
  10. if (i<=j){
  11. x=tab2[i];
  12. tab2[i]=tab2[j];
  13. tab2[j]=x;
  14. i++; j--;
  15. }
  16. }while (i<=j);
  17. if (j>left) quicksort(tab2,left, j);
  18. if (i<right) quicksort(tab2, i, right);
  19. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/usr/lib/gcc/i586-linux-gnu/4.9/../../../i386-linux-gnu/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty