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_38079841_22572.cpp:1:3: error: expected ')' before '=' token
 (i=2;i<t;i++) { num+=ST[1].cnt*(Sc[i].x-Sc[i-1].x); Update(1,Sc[i]); } printf("Test case #%d\nTotal explored area: %.2f\n\n",ans,num); } return 0; }
   ^
0_0_38079841_22572.cpp:1:6: error: 'i' does not name a type
 (i=2;i<t;i++) { num+=ST[1].cnt*(Sc[i].x-Sc[i-1].x); Update(1,Sc[i]); } printf("Test case #%d\nTotal explored area: %.2f\n\n",ans,num); } return 0; }
      ^
0_0_38079841_22572.cpp:1:10: error: 'i' does not name a type
 (i=2;i<t;i++) { num+=ST[1].cnt*(Sc[i].x-Sc[i-1].x); Update(1,Sc[i]); } printf("Test case #%d\nTotal explored area: %.2f\n\n",ans,num); } return 0; }
          ^
0_0_38079841_22572.cpp:1:78: error: expected constructor, destructor, or type conversion before '(' token
 (i=2;i<t;i++) { num+=ST[1].cnt*(Sc[i].x-Sc[i-1].x); Update(1,Sc[i]); } printf("Test case #%d\nTotal explored area: %.2f\n\n",ans,num); } return 0; }
                                                                              ^
0_0_38079841_22572.cpp:1:136: error: expected declaration before '}' token
 (i=2;i<t;i++) { num+=ST[1].cnt*(Sc[i].x-Sc[i-1].x); Update(1,Sc[i]); } printf("Test case #%d\nTotal explored area: %.2f\n\n",ans,num); } return 0; }
                                                                                                                                        ^


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-12-05 07:56:09, Gzip enabled