0_0_15564784_22862.cpp: In function 'int main()':
0_0_15564784_22862.cpp:14:19: error: invalid initialization of reference of type 'int&' from expression of type 'char'
if(b<a) swap(a,b);
^
0_0_15564784_22862.cpp:2:6: note: in passing argument 1 of 'void swap(int&, int&)'
void swap(int &x, int &y)
^
0_0_15564784_22862.cpp:15:19: error: invalid initialization of reference of type 'int&' from expression of type 'char'
if(c<a) swap(a,c);
^
0_0_15564784_22862.cpp:2:6: note: in passing argument 1 of 'void swap(int&, int&)'
void swap(int &x, int &y)
^
0_0_15564784_22862.cpp:16:19: error: invalid initialization of reference of type 'int&' from expression of type 'char'
if(c<b) swap(b,c);
^
0_0_15564784_22862.cpp:2:6: note: in passing argument 1 of 'void swap(int&, int&)'
void swap(int &x, int &y)
^
|