0_0_34309923_20635.cpp: In function 'int main()': 0_0_34309923_20635.cpp:8:2: error: expected ')' before 'printf' printf("%.2f\n",sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))); ^