0_0_38597398_16979.cpp: In function 'int main()': 0_0_38597398_16979.cpp:7:19: error: invalid operands of types 'double' and 'double' to binary 'operator^' sum=sqrt((x2-x1)^2+(y2-y1)^2); ~~~~~~~^~~~~~~~~~