Hi,
I have this error and I don't know why, please help me. Thank you... ( I have to calculate the result of 3 different operations in the same program)
Also, I'm not sure what the arrays int p1[x] are for. In C++ an array must have a fixed size, but x is a variable. Not only that, but it has a value of zero. An array with no elements is not valid. Maybe you don't actually need an array?
However, it isn't clear what it is you are trying to do. x is used a lot in the calculation, but its value is always zero, so it doesn't do very much.