#pragma warning(disable : 4996)
#include<stdio.h>
int scanfall(int* x, int* y, int* z);
int ascend(int* x, int* y, int* z);
int swap(int* x, int* y);
int main(void) {
int x, y, z;
int (*pm)(int* x, int* y,int* z);
pm = scanfall;
pm = ascend;
scanfall(&x, &y, &z);
ascend(&x,&y,&z);
printf("a=%d,b=%d,c=%d\n",x
,y
,z
); return 0;
}
int scanfall(int* x, int* y, int* z) {
}
int ascend(int* x, int* y, int* z) {
if (x > y && y > z)
swap(x, z);
if (x > y && y < z)
swap(x, y);
if (x<y && y>z);
swap(y, z);
}
int swap(int* x, int* y) {
int w;
*x = w;
*x = *y;
*y = w;
}
I3ByYWdtYSB3YXJuaW5nKGRpc2FibGUgOiA0OTk2KQojaW5jbHVkZTxzdGRpby5oPgppbnQgc2NhbmZhbGwoaW50KiB4LCBpbnQqIHksIGludCogeik7CmludCBhc2NlbmQoaW50KiB4LCBpbnQqIHksIGludCogeik7CmludCBzd2FwKGludCogeCwgaW50KiB5KTsKaW50IG1haW4odm9pZCkgewoJaW50IHgsIHksIHo7CglpbnQgKCpwbSkoaW50KiB4LCBpbnQqIHksaW50KiB6KTsKCXBtID0gc2NhbmZhbGw7CglwbSA9IGFzY2VuZDsKCXNjYW5mYWxsKCZ4LCAmeSwgJnopOwoJYXNjZW5kKCZ4LCZ5LCZ6KTsKICAgIHByaW50ZigiYT0lZCxiPSVkLGM9JWRcbiIseCx5LHopOwoJcmV0dXJuIDA7Cn0KaW50IHNjYW5mYWxsKGludCogeCwgaW50KiB5LCBpbnQqIHopIHsKCXNjYW5mKCIlZCIsIHgpOwoJc2NhbmYoIiVkIiwgeSk7CglzY2FuZigiJWQiLCB6KTsKfQppbnQgYXNjZW5kKGludCogeCwgaW50KiB5LCBpbnQqIHopIHsKCWlmICh4ID4geSAmJiB5ID4geikKCQlzd2FwKHgsIHopOwoJaWYgKHggPiB5ICYmIHkgPCB6KQoJCXN3YXAoeCwgeSk7CglpZiAoeDx5ICYmIHk+eik7CgkJc3dhcCh5LCB6KTsKfQppbnQgc3dhcChpbnQqIHgsIGludCogeSkgewoJaW50IHc7CgkqeCA9IHc7CgkqeCA9ICp5OwoJKnkgPSB3Owp9