0_0_19877811_20919.cpp: In function 'int main(int, char**)': 0_0_19877811_20919.cpp:8:43: error: 'sqrt' was not declared in this scope sum=sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)); ^