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_37855903_12969.cpp:9:43: error: conflicting declaration 'int p'
 int t,n,fa[50005],p[50005],cnt,a[50005],k,p;
                                           ^
0_0_37855903_12969.cpp:9:19: note: previous declaration as 'int p [50005]'
 int t,n,fa[50005],p[50005],cnt,a[50005],k,p;
                   ^
0_0_37855903_12969.cpp: In function 'int main()':
0_0_37855903_12969.cpp:26:14: error: incompatible types in assignment of 'int' to 'int [50005]'
   k=sqrt(n);p=10;
              ^
0_0_37855903_12969.cpp:37:15: error: invalid operands of types 'int' and 'int [50005]' to binary 'operator/'
     if(cyh<=n/p){cnt++;s[cnt].first=cyh;s[cnt].second.first=i;s[cnt].second.second=j;}//cout<<i<<' '<<j<<' '<<cyh<<endl;}
               ^
0_0_37855903_12969.cpp:44:15: error: invalid operands of types 'int' and 'int [50005]' to binary 'operator/'
     if(cyh<=n/p){cnt++;s[cnt].first=cyh;s[cnt].second.first=a[i];s[cnt].second.second=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-07-04 22:01:48, Gzip enabled