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