foo.cpp:1:1: error: 'include' does not name a type
include<iostream> include<math.h> include<stdio.h>
^
foo.cpp: In function 'void Qsort(int, int)':
foo.cpp:17:15: error: 'swap' was not declared in this scope
swap(x[i],x[j]);
^
foo.cpp: In function 'int main()':
foo.cpp:27:1: error: 'cin' was not declared in this scope
cin>>n;
^
foo.cpp:34:61: error: 'sqrt' was not declared in this scope
d[i][j]=sqrt((x[i]-x[j])*(x[i]-x[j])+(y[i]-y[j])*(y[i]-y[j]));
^
foo.cpp:47:38: error: 'min' was not declared in this scope
f[i][j]=min(f[i][j],f[j][k]+d[k][i]);
^
foo.cpp:50:37: error: 'printf' was not declared in this scope
printf("%.2lf\n",f[n][n-1]+d[n-1][n]);
^