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