Main.cc: In function ‘int main()’: Main.cc:38:5: error: ‘sort’ was not declared in this scope sort(x + 1, x + b + 1, cmpx); ^~~~ Main.cc:38:5: note: suggested alternative: ‘qsort’ sort(x + 1, x + b + 1, cmpx); ^~~~ qsort