i];Рreturnres;Рintcase2(intarr[],intlength,intres[])РintxorRes=casel(arr,length);Рintdivider=xorRes&-xorRes;Рintheap1[102]={0};Рintheap2[102]={0};Рintlength1=0,length2=0;Рfor(inti=0;i<length;++i)Рif(arr[i]÷r)Рheap1[length++]=arr[i];РelseРheap2[length++]=arr[i];Рres[0]=case1(heap1,lengthl);Рres[1]=case1(heap2,length2);Рreturnres;Рntmain()Рintarr[101];Рfor(inti=0;i<101;i++)Рarr[i]=i/2;Рintres=case1(arr,101);Рprintf("thespecialnumberis%d"res);Рintarr2[102];Рfor(inti=0;i<101;i++)Рarr2[i]=i/2;Рarr2[101]=51;Рintres2[2]={0};Рcase2(arr2,102,res2);Рprintf("thetwospecialnumberis%d%d"res2[0],res2[1]);РР分析?Р数组传值不对,修改为对应的length1和2РР19Р20Р21Р22Р23Р24Р25Р26Р27Р9RР-]Р-]Рfor:in:i=3;i<ler^tk;+-i)Рif(air.i.般divicerJР?eapl_lengthl--_=arr.i.:РelseРheap2[letxgth2—]=arrРРРРРРРРРРР重新运行Рfthespecialnunberis50