// input checker probA - ECNA2015 #include using namespace std; int main(){ int caseno=1; int n,n1,n2,n3; int m,x,y,z,vx,vy,vz; cin>>n>>n1>>n2>>n3; if (n <= 0 || n > 100 || n1 <= 0 || n1 > 1000 || n2 <= 0 || n2 > 1000 || n3 <= 0 || n3 > 1000) return 4; for (int i=0;i>m>>x>>y>>z>>vx>>vy>>vz; if (m<1 || m>100) { cout<<"m out of bounds"; return 1; } if(x<0||x>=n1||y<0||y>=n2||z<0||z>=n3) { cout<<"xyz out of bounds"; return 2; } if(vx<-1000||vx>1000||vy<-1000||vy>1000||vz<-1000||vz>1000) { cout<<"initial velocity out of bounds"; return 3; } } return 42; }