#include int moveRobots(int *, int *, int, int ); int getNew(int, int); int main() { int x[4], y[4], i, j, myX = 25, myY = 25, move, status = 1; // initialize positions of four robots x[0] = 0; y[0] = 0; x[1] = 0; y[1] = 50; x[2] = 50; y[2] = 0; x[3] = 50; y[3] = 50; std::cout << "Your coordinates: 25 25\n"; while (status == 1) { std::cout << "Enter move (1 for +x, -1 for -x, 2 for + y, -2 for -y):"; std::cin >> move; // process user's move if (move == 1) myX++; else if (move == -1) myX--; else if (move == 2) myY++; else if (move == -2) myY--; // update robot positions status = moveRobots(&x[0],&y[0],myX,myY); std::cout << "Your coordinates: " << myX << " " << myY <= 10) result = arg0 - 10; else if (temp > 0) result = arg0 - 1; else if (temp == 0) result = arg0; else if (temp > -10) result = arg0 + 1; else if (temp <= -10) result = arg0 + 10; return result; }