#include using namespace std; int main(){ int n, nx, ny, nz; int cur_case = 1; cin >> n >> nx >> ny >> nz; if(n <=0) { // can n technically be 0? cout << "ERROR: n too low!" << endl; return 1; } if(n > 100) { cout << "ERROR: n too high!" << endl; return 2;} if(nx < 0) { cout << "ERROR: nx too low!" << endl; return 3; } if(nx > 1000) { cout << "ERROR: nx too high!" << endl; return 4;} if(ny < 0) { cout << "ERROR: ny too low!" << endl; return 5;} if(ny > 1000) { cout << "ERROR: ny too high!" << endl; return 6;} if(nz < 0) { cout << "ERROR: nz too low!" << endl; return 7; } if(nz > 1000) { cout << "ERROR: nz too high!" << endl; return 8; } for(int i = 0; i < n; i++){ int m, x, y, z, vx, vy, vz; cin >> m >> x >> y >> z >> vx >> vy >> vz; if(m < 0) { cout << "ERROR: m too low!" << endl; return 9; } // need an upper bound for m if(x < 0) { cout << "ERROR: x too low!" << endl; return 10; } if(x >= nx) { cout << "ERROR: x too high!" << endl; return 11; } if(y < 0) { cout << "ERROR: y too low!" << endl; return 12; } if(y >= ny) { cout << "ERROR: y too high!" << endl; return 13; } if(z < 0) { cout << "ERROR: z too low!" << endl; return 14; } if(z >= nz) { cout << "ERROR: z too high!" << endl; return 15; } // need bounds on velocities } return 42; }