F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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]);
                                                 ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-10-06 14:48:03, Gzip enabled