void qsort(int v[], int left, int right) { int i, last; void swap(int v[], int i, int j); if(lef >= right) return ; swap(v, left, (left + right) / 2); last = left; for(i = left + 1; i <= right; i++) { if(v[i] < v[left]) swap(v, ++last, i); } swap(v, left, last); qsort(v, left, last - 1); qsort(v, last + 1, right);}
Standard input is empty
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.)
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!