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_33634905_17004.cpp:86:5: error: expected constructor, destructor, or type conversion before '(' token
 sort(robots+1,robots+1+n);
     ^
0_0_33634905_17004.cpp:88:1: error: 'stk' does not name a type
 stk[tail]=robots[1].pos;
 ^
0_0_33634905_17004.cpp:89:1: error: 'times' does not name a type
 times[tail]=fenshu {0,1}; //成为领导人的时间,这里保存1/2t^2来减小误差
 ^
0_0_33634905_17004.cpp:90:1: error: 'va' does not name a type
 va[tail]=robots[1].a;
 ^
0_0_33634905_17004.cpp:91:1: error: expected unqualified-id before 'for'
 for (int i=2; i<=n; i++)
 ^
0_0_33634905_17004.cpp:91:15: error: 'i' does not name a type
 for (int i=2; i<=n; i++)
               ^
0_0_33634905_17004.cpp:91:21: error: 'i' does not name a type
 for (int i=2; i<=n; i++)
                     ^
0_0_33634905_17004.cpp:103:1: error: expected unqualified-id before 'for'
 for (int i=1; i<=tail; i++)
 ^
0_0_33634905_17004.cpp:103:15: error: 'i' does not name a type
 for (int i=1; i<=tail; i++)
               ^
0_0_33634905_17004.cpp:103:24: error: 'i' does not name a type
 for (int i=1; i<=tail; i++)
                        ^
0_0_33634905_17004.cpp:107:7: error: expected constructor, destructor, or type conversion before '(' token
 printf("%d\n",ans);
       ^


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-11-16 14:54:07, Gzip enabled