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;}
^
|