#include <random>
#include <iostream>
using namespace std;
int generator() {
random_device random_device;
mt19937 generator(random_device());
uniform_int_distribution<> distribution(1, 10);
int x = distribution(generator);
int c = distribution(generator);
int answer = x * c;
return answer, x, c;
}
int main() {
cout << generator();
}
void generator(int& answer, int& x, int& c)
#include <random>
#include <iostream>
using namespace std;
void generator(int& answer, int& x, int& c) {
random_device random_device;
mt19937 generator(random_device());
uniform_int_distribution<> distribution(1, 10);
x = distribution(generator);
c = distribution(generator);
answer = x * c;
}
int main() {
int answer, x,c;
generator(answer, x,c);
cout << answer << " " << x << " " << c;
}