1#include <tuple>
2
3std::tuple<int, int> divide(int dividend, int divisor) {
4 return std::make_tuple(dividend / divisor, dividend % divisor);
5}
6
7#include <iostream>
8
9int main() {
10 using namespace std;
11
12 int quotient, remainder;
13
14 tie(quotient, remainder) = divide(14, 3);
15
16 cout << quotient << ',' << remainder << endl;
17}