fork download
  1. void qsort(int v[], int left, int right) {
  2. int i, last;
  3. void swap(int v[], int i, int j);
  4.  
  5. if(lef >= right)
  6. return ;
  7.  
  8. swap(v, left, (left + right) / 2);
  9. last = left;
  10.  
  11. for(i = left + 1; i <= right; i++) {
  12. if(v[i] < v[left])
  13. swap(v, ++last, i);
  14. }
  15.  
  16. swap(v, left, last);
  17.  
  18. qsort(v, left, last - 1);
  19. qsort(v, last + 1, right);
  20. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘qsort’:
prog.c:5: error: ‘lef’ undeclared (first use in this function)
prog.c:5: error: (Each undeclared identifier is reported only once
prog.c:5: error: for each function it appears in.)
stdout
Standard output is empty