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_16716705_22507.cpp:3:31: error: '::main' must return 'int'
 using namespace std;void main(){int n,m=0,k,j,t=0;while(cin>>n){string c[1001];int b[1000]={0};if(n==0) break;for(j=0;j<n;j++)cin>>c[j];for(j=0;j<n;j++)for(k=j;k<n;k++)if(c[j]==c[k])b[j]++;for(j=0;j<1000;j++)if(b[j]>m){m=b[j];t=j;}cout<<c[t]<<endl;}}
                               ^


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-10-07 01:26:33, Gzip enabled