#include ldiv_t ldiv(long numerator, long denominator) { ldiv_t x; x.quot=numerator/denominator; x.rem=numerator-x.quot*denominator; return x; }