0_0_19442938_26519.cpp:7:10: error: expected unqualified-id before 'float'
float x,float y;
^
0_0_19442938_26519.cpp: In constructor 'p::p(float, float)':
0_0_19442938_26519.cpp:8:26: error: class 'p' does not have any field named 'y'
p(float x,float y):x(x),y(y){}
^
0_0_19442938_26519.cpp: In function 'float dis(p&, float, float)':
0_0_19442938_26519.cpp:81:35: error: 'struct p' has no member named 'y'
return sqrt(pow(x-o.x,2)+pow(y-o.y,2));
^
|