#include
#include
#include
using namespace std;
mt19937 gen(time(0));
uniform_int_distribution<> uid(0, 100);
int main()
{
int array[100];
int a = 0;
float s1 = 0, s2 = 0;
for (int i = 0; i < 100; ++i) {
array[i] = uid(gen);
cout << array[i] << " ";<br>if (i < 50) {
s1 += array[i];
}
else if (i >= 50) {
s2 += array[i];
}
}
cout << endl << "S1: " << s1 / 50 << " S2: " << s2 / 50 << endl;<br>return 0;
}