#include #include using namespace std; bool isPoint(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4) { if( ((x1==x3)&&(y1==y3)) || ((x1==x3)&&(y2==y4)) || ((x2==x4)&&(y1==y3)) || ((x2==x4)&&(y2==y4))) { return true; } if( ((x1==x4)&&(y1==y4)) || ((x1==x3)&&(y2==y3)) || ((x2==x3)&&(y2==y3)) || ((x2==x4)&&(y1==y4))) { return true; } return false; } bool isLine(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4) { if(x2>x1) { for(int x=x1+1;xy1) { for(int y=y1+1;yx1) { for(int x=x1+1;xy1) { for(int y=y1+1;yy1) { for(int y=y1+1;y>t; for(int i=1;i<=t;i++) { cin>>x1>>y1>>x2>>y2>>x3>>y3>>x4>>y4; if(isRectangle(x1,y1,x2,y2,x3,y3,x4,y4)==true) cout<<"rectangle"<