Because of necessary software maintenance, Jutge.org may not fully work on the 7 of may, from 8 to 10 CEST.
Distance between two points
P46254
Statement
html
Using the definition
structPoint {
doublex, y;
};
write a function
doubledist(constPoint& a, constPoint& b);
that returns the euclidean distance between two points a and b.
Observation
You only need to submit the required classes;
your main program will be ignored.
Strictly obey the type definitions of the statement.
About statements
The official statement of a problem is always the one
in the PDF document. The HTML version of the statement
is also given to help you, but may contain some content
that is not well displayed. In case of doubt, always use the PDF.