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_19426771_26386.cpp:14:9: error: expected unqualified-id before 'for'
         for(i=1;i<=n;i++)
         ^
0_0_19426771_26386.cpp:14:17: error: 'i' does not name a type
         for(i=1;i<=n;i++)
                 ^
0_0_19426771_26386.cpp:14:22: error: 'i' does not name a type
         for(i=1;i<=n;i++)
                      ^
0_0_19426771_26386.cpp:16:13: error: expected constructor, destructor, or type conversion before '(' token
         sort(a+1,a+1+n);
             ^
0_0_19426771_26386.cpp:17:9: error: 'b' does not name a type
         b[0][0]=0;
         ^
0_0_19426771_26386.cpp:18:9: error: expected unqualified-id before 'for'
         for(i=1,j=2;i<=k;i++,j=2*i)//i表示几队,j表示多少物品
         ^
0_0_19426771_26386.cpp:18:21: error: 'i' does not name a type
         for(i=1,j=2;i<=k;i++,j=2*i)//i表示几队,j表示多少物品
                     ^
0_0_19426771_26386.cpp:18:26: error: 'i' does not name a type
         for(i=1,j=2;i<=k;i++,j=2*i)//i表示几队,j表示多少物品
                          ^
0_0_19426771_26386.cpp:24:9: error: 'cout' does not name a type
         cout<<b[k][n]<<endl;
         ^
0_0_19426771_26386.cpp:25:5: error: expected declaration before '}' token
     }
     ^


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-03 17:02:16, Gzip enabled