In my vs code sort fucntion not showing ,showing As short

In my vs code sort fucntion not showing ,showing As short but aslo in short showing error i don’t know why

#include using namespace std; bool compare(int a, int b) { cout<<a<<b; return a < b; } int main() { int a[] = {5, 3, 2, 4, 1, 6}; int n = sizeof(a) / sizeof(int); for (int i = 0; i < n; i++) { cout << a[i] << " "; } cout << endl; short(a, a + n, compare); for (int i = 0; i < n; i++) { cout << a[i] << " "; } cout << endl; return 0; }

hi @dheerajjha11111_bb855e8d7a52ef0d use
# include <algorithm> as a header as sort fn is in this header

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.