0_0_38248558_26220.cpp: In function 'void find(int, int, int)':
0_0_38248558_26220.cpp:49:6: error: void value not ignored as it ought to be
id=find(l,mid-1,(i+1)%3);
^
0_0_38248558_26220.cpp:56:9: error: void value not ignored as it ought to be
id2=find(mid+1,r,(i+1)%3);
^
0_0_38248558_26220.cpp:57:18: error: return-statement with a value, in function returning 'void' [-fpermissive]
}else return id;
^
0_0_38248558_26220.cpp:60:6: error: void value not ignored as it ought to be
id=find(mid+1,r,(i+1)%3);
^
0_0_38248558_26220.cpp:67:9: error: void value not ignored as it ought to be
id2=find(l,mid-1,(i+1)%3);
^
0_0_38248558_26220.cpp:68:18: error: return-statement with a value, in function returning 'void' [-fpermissive]
}else return id;
^
0_0_38248558_26220.cpp:75:10: error: return-statement with a value, in function returning 'void' [-fpermissive]
return id;
^
0_0_38248558_26220.cpp:77:47: error: return-statement with a value, in function returning 'void' [-fpermissive]
if(dis1==dis2&&ps[id].id<ps[id2].id) return id;
^
0_0_38248558_26220.cpp:78:10: error: return-statement with a value, in function returning 'void' [-fpermissive]
return id2;
^
0_0_38248558_26220.cpp: In function 'int main()':
0_0_38248558_26220.cpp:100:23: error: void value not ignored as it ought to be
int id=find(0,n-1,0);
^
|