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_20614418_2328.cpp:5:5: error: expected unqualified-id before '>' token
     >t;    while(t--)    {        cin>>n;        memset(mapp,0,sizeof(mapp));        memset(head,0,sizeof(head));        int maxx=-1;        for(int i=0;i<n;i++){int x;cin>>x;mapp[x]++;maxx=max(maxx,x);}        for(int i=2;i<=maxx;i++)        {            for(int j=i;j<=maxx;j+=i)            {                if(mapp[j]) head[i]+=mapp[j];            }        }            cout<<"Case #"<<casee++<<": ";        for(int i=maxx;i>=1;i--)        {            if(head[i]>=2) {cout<<i<<endl;break;}        }    }    return 0;}
     ^
0_0_20614418_2328.cpp:5:12: error: expected unqualified-id before 'while'
     >t;    while(t--)    {        cin>>n;        memset(mapp,0,sizeof(mapp));        memset(head,0,sizeof(head));        int maxx=-1;        for(int i=0;i<n;i++){int x;cin>>x;mapp[x]++;maxx=max(maxx,x);}        for(int i=2;i<=maxx;i++)        {            for(int j=i;j<=maxx;j+=i)            {                if(mapp[j]) head[i]+=mapp[j];            }        }            cout<<"Case #"<<casee++<<": ";        for(int i=maxx;i>=1;i--)        {            if(head[i]>=2) {cout<<i<<endl;break;}        }    }    return 0;}
            ^


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-26 17:02:27, Gzip enabled