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_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){
      ^


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-11-17 03:36:16, Gzip enabled