#include <stdio.h>
#include <stdlib.h>
void cal(int x, int y, int *sum, int *diff, int *mul, int *mod) {
*mod
= (y
!= 0) ? abs(x
/ y
) : 0; }
int main() {
int x = 3, y = 2;
int sum, diff, mul, mod;
cal(x, y, &sum, &diff, &mul, &mod);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4gIAoKdm9pZCBjYWwoaW50IHgsIGludCB5LCBpbnQgKnN1bSwgaW50ICpkaWZmLCBpbnQgKm11bCwgaW50ICptb2QpIHsKICAgICpzdW0gPSBhYnMoeCArIHkpOwogICAgKmRpZmYgPSBhYnMoeCAtIHkpOwogICAgKm11bCA9IGFicyh4ICogeSk7CiAgICAqbW9kID0gKHkgIT0gMCkgPyBhYnMoeCAvIHkpIDogMDsgIAp9CgppbnQgbWFpbigpIHsKICAgIGludCB4ID0gMywgeSA9IDI7CiAgICBpbnQgc3VtLCBkaWZmLCBtdWwsIG1vZDsKCiAgICAKICAgIGNhbCh4LCB5LCAmc3VtLCAmZGlmZiwgJm11bCwgJm1vZCk7CgogICAgCiAgICBwcmludGYoIuWQiOioiDolZFxuIiwgc3VtKTsKICAgIHByaW50Zigi5beuOiAlZFxuIiwgZGlmZik7CiAgICBwcmludGYoIuaOm+OBkeeulzogJWRcbiIsIG11bCk7CiAgICBwcmludGYoIuWVhjogJWRcbiIsIG1vZCk7CgogICAgcmV0dXJuIDA7Cn0K