#include #include using namespace std; class point{ public: int x; int y; }; int main(){ int w, l; cin >> w >> l; if(w <= 0) { cout << "w too small" << endl; return 1; } if(w > 120) { cout << "w too high" << endl; return 2; } if(l <= 0) { cout << "l too small" << endl; return 3; } if(l > 120) { cout << "l too high" << endl; return 4; } vector balls(3); int r, x1, y1, x2, y2, x3, y3, h; cin >> r >> balls[0].x>> balls[0].y >> balls[1].x >> balls[1].y >> balls[2].x >> balls[2].y >> h; if(r <= 0) { cout << "r too low" << endl; return 5; } if(r > 100) { cout << "r too high" << endl; return 6; } for(int i = 0; i < 3; i++){ if(balls[i].x-r < 0) { cout << "x" << i+1 << " too small" << endl; return 7; } if(balls[i].x+r > w) { cout << "x" << i+1 << " too large" << endl; return 8; } if(balls[i].y-r < h) { cout << "y" << i+1 <<" too small" << endl; return 9; } if(balls[i].y+r > l) { cout << "y"< l-r) { cout << "h too large" << endl; return 12; } return 42; }