0_0_36095326_5924.cpp: In function 'double dist(const double&, const double&, const double&, const double&)':
0_0_36095326_5924.cpp:15:55: error: expected ')' before ';' token
return ((x1 - x2) * (x1 - x2) + (y1 - y2 * (y1 - y2));
^
0_0_36095326_5924.cpp: At global scope:
0_0_36095326_5924.cpp:17:68: error: redefinition of 'const double& x1'
double sqrt_dist(const double& x1, const double& y1, const double& x1, const double& y2){
^
0_0_36095326_5924.cpp:17:32: note: 'const double& x1' previously declared here
double sqrt_dist(const double& x1, const double& y1, const double& x1, const double& y2){
^
0_0_36095326_5924.cpp: In function 'double sqrt_dist(const double&, const double&, const double&)':
0_0_36095326_5924.cpp:18:27: error: 'x2' was not declared in this scope
return sqrt(dist(x1, y1, x2, y2));
^
0_0_36095326_5924.cpp: In function 'bool judge(const _Rectangle&, const _Circle&)':
0_0_36095326_5924.cpp:27:23: error: expected primary-expression before ')' token
if(rect.x1 > rect.x2)) swap(rect.x1, rect.x2);
^
0_0_36095326_5924.cpp:28:23: error: expected primary-expression before ')' token
if(rect.y1 > rect.y2)) swap(rect.y1, rect.y2);
^
0_0_36095326_5924.cpp:31:69: error: expected primary-expression before '||' token
dist(rect.x1, rect.y1, circle.x, circle.y) <= circle.r * circle.r) ||
^
|