0_0_38136180_21776.cpp: In function 'double dis(p, p)':
0_0_38136180_21776.cpp:6:7: error: expected unqualified-id before '[' token
auto [x,y]=a;
^
0_0_38136180_21776.cpp:7:7: error: expected unqualified-id before '[' token
auto [xx,yy]=b;
^
0_0_38136180_21776.cpp:8:28: error: 'x' was not declared in this scope
return std::sqrt(std::pow(x-xx,2)+std::pow(y-yy,2));
^
0_0_38136180_21776.cpp:8:30: error: 'xx' was not declared in this scope
return std::sqrt(std::pow(x-xx,2)+std::pow(y-yy,2));
^
0_0_38136180_21776.cpp:8:45: error: 'y' was not declared in this scope
return std::sqrt(std::pow(x-xx,2)+std::pow(y-yy,2));
^
0_0_38136180_21776.cpp:8:47: error: 'yy' was not declared in this scope
return std::sqrt(std::pow(x-xx,2)+std::pow(y-yy,2));
^
|