#include <iostream>
#include <cmath>
#include <vector>
using namespace std;
signed main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
vector<int> neg;
srand(time(NULL));
for(int i = 0; i < 25; i++)
{
int k = rand() % 201 - 100;
cout << k << " ";
if(k < 0)
neg.push_back(k);
}
cout << "\n";
for(auto i: neg)
cout << i << " ";
#include <iostream>
#include <cmath>
#include <vector>
using namespace std;
signed main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
vector<int> neg;
srand(time(NULL));
for(int i = 0; i < 25; i++)
{
int k = rand() % 201 - 100;
cout << k << " ";
if(k < 0)
neg.push_back(k);
}
cout << "\n";
for(auto i: neg)
cout << i << " ";
}