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_33529664_21430.cpp:2:3: error: 'lty' does not name a type
   lty[s++]=0;
   ^
0_0_33529664_21430.cpp:3:3: error: expected unqualified-id before 'if'
   if(cnt>1) lty[s++]=1;
   ^
0_0_33529664_21430.cpp:4:3: error: expected unqualified-id before 'for'
   for (int i=2;i<cnt;i++) 
   ^
0_0_33529664_21430.cpp:4:16: error: 'i' does not name a type
   for (int i=2;i<cnt;i++) 
                ^
0_0_33529664_21430.cpp:4:22: error: 'i' does not name a type
   for (int i=2;i<cnt;i++) 
                      ^
0_0_33529664_21430.cpp:20:3: error: expected unqualified-id before 'for'
   for(int i=0;i<s;i++)
   ^
0_0_33529664_21430.cpp:20:15: error: 'i' does not name a type
   for(int i=0;i<s;i++)
               ^
0_0_33529664_21430.cpp:20:19: error: 'i' does not name a type
   for(int i=0;i<s;i++)
                   ^
0_0_33529664_21430.cpp:27:3: error: 'cout' does not name a type
   cout<<did<<endl;
   ^
0_0_33529664_21430.cpp:28:2: 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-11-16 05:13:03, Gzip enabled