0_0_34331916_7211.cpp: In function 'int main()': 0_0_34331916_7211.cpp:11:41: error: 'dist' was not declared in this scope printf("%.2f\n", dist(x1, y1, x2, y2)); ^