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_23375495_5348.cpp: In function 'int main()':
0_0_23375495_5348.cpp:4:21: error: expected initializer before 'e'
     int t,n,a[10005]e,i,j,sum;
                     ^
0_0_23375495_5348.cpp:9:13: error: 'i' was not declared in this scope
         for(i=0;i<n;i++)
             ^
0_0_23375495_5348.cpp:10:25: error: 'a' was not declared in this scope
             scanf("%d",&a[i]);
                         ^
0_0_23375495_5348.cpp:11:9: error: 'sum' was not declared in this scope
         sum=0;
         ^
0_0_23375495_5348.cpp:12:13: error: 'i' was not declared in this scope
         for(i=0;i<n;i++)
             ^
0_0_23375495_5348.cpp:14:13: error: 'e' was not declared in this scope
             e=1;
             ^
0_0_23375495_5348.cpp:15:17: error: 'j' was not declared in this scope
             for(j=i+1;j<n;j++)  //一个数字出现的最多次数
                 ^
0_0_23375495_5348.cpp:16:20: error: 'a' was not declared in this scope
                 if(a[i]==a[j])
                    ^


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 08:27:35, Gzip enabled