#include
#include
#include
using namespace std;
int main() {
srand(time(NULL));
int n = 10, x = rand() % 21 - 10, y = 0;
vector a;
for (int i = 0; i <= n; i++) {<br> a.push_back(rand() % 101 - 50);
y += pow(-1, i+1) * a[i] * pow(x, i+1);
}
cout << y << endl;<br> return 0;
}