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_38779920_9348.cpp: In function 'int main()':
0_0_38779920_9348.cpp:47:30: error: 'len' was not declared in this scope
   47 |                         sum+=len[i];
      |                              ^~~
0_0_38779920_9348.cpp:49:22: error: 'len' was not declared in this scope
   49 |                 sort(len,len+n,cmp);
      |                      ^~~
0_0_38779920_9348.cpp:53:40: error: 'vis' was not declared in this scope
   53 |                                 memset(vis,0,sizeof(vis));
      |                                        ^~~
0_0_38779920_9348.cpp:62:21: error: 'flag' was not declared in this scope
   62 |                 if(!flag){
      |                     ^~~~
0_0_38779920_9348.cpp:63:40: error: expected ';' before '}' token
   63 |                         cout<<sum<<endl
      |                                        ^
      |                                        ;
   64 |                 }
      |                 ~                       


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-22 17:52:55, Gzip enabled