0_0_36318123_6411.cpp: In function 'int main()':
0_0_36318123_6411.cpp:56:17: error: invalid initialization of reference of type 'int&' from expression of type 'll {aka long long int}'
get_max(A[i],A[i^j]);//如果i的这一位是0,那么即可进行如下操作
^
0_0_36318123_6411.cpp:25:6: note: in passing argument 1 of 'void get_max(int&, int)'
void get_max(int &x,int y){
^
0_0_36318123_6411.cpp:57:17: error: invalid initialization of reference of type 'int&' from expression of type 'll {aka long long int}'
get_min(a[i],a[i^j]);//我明白了和我当时想的一样,我们往i的非1位
^
0_0_36318123_6411.cpp:21:6: note: in passing argument 1 of 'void get_min(int&, int)'
void get_min(int &x,int y){
^
0_0_36318123_6411.cpp:58:17: error: invalid initialization of reference of type 'int&' from expression of type 'll {aka long long int}'
get_max(B[i],B[i^j]);//里面添1,那么与的结果一定不会小于i。
^
0_0_36318123_6411.cpp:25:6: note: in passing argument 1 of 'void get_max(int&, int)'
void get_max(int &x,int y){
^
0_0_36318123_6411.cpp:59:17: error: invalid initialization of reference of type 'int&' from expression of type 'll {aka long long int}'
get_min(b[i],b[i^j]);//错误:我当时只是没考虑清楚这一位是取还是不取
^
0_0_36318123_6411.cpp:21:6: note: in passing argument 1 of 'void get_min(int&, int)'
void get_min(int &x,int y){
^
|