Defined in header <cstdlib> std::div_t div( int x, int y ); (1) std::ldiv_t div( long x, long y ); (2) std::lldiv_t div( long long x, long long y ); (3) (since C++11) std::ldiv_t ldiv( long x, long y ); (4) std::lldiv_t lldiv( long long x, long long y ); (5) (since C++11) Defined in header <cinttypes> std::imaxdiv_t div( std::intmax_t x, std::intmax_t y ); (6) (since C++11) std::imaxdiv_t imaxdiv( std::intmax_t x, std::in