0_0_24666290_7355.cpp: In function 'int main()':
0_0_24666290_7355.cpp:41:7: error: cannot convert 'node' to 'int' in assignment
p[0] = a[0];
^
0_0_24666290_7355.cpp:42:7: error: cannot convert 'node' to 'int' in assignment
p[1] = a[1];
^
0_0_24666290_7355.cpp:53:45: error: could not convert 'p[0]' from 'int' to 'node'
else if (n == 2) { printf("%.2lf\n",dis(p[0],p[1]));}
^
0_0_24666290_7355.cpp:56:49: error: could not convert 'p[i]' from 'int' to 'node'
for (int i = 0 ; i <= top ; i++) ans += dis(p[i],p[i + 1]);
^
|