0_0_35989797_25339.cpp: In function 'int main()': 0_0_35989797_25339.cpp:22:22: error: 'sort' was not declared in this scope sort(a+1,a+n+1); ^ 0_0_35989797_25339.cpp:25:29: error: 'abs' was not declared in this scope ans+=abs(a[n/2]-a[i]); ^