0_0_19231061_28804.cpp:22:7: error: 'Po' does not name a type
const Po
^
0_0_19231061_28804.cpp:23:1: error: expected ',' or '...' before 'int'
int & p):x(p.x),y(p.y) {} friend Po
^
0_0_19231061_28804.cpp:23:37: error: 'Po' does not name a type
int & p):x(p.x),y(p.y) {} friend Po
^
0_0_19231061_28804.cpp:28:66: error: 'Po' does not name a type
int & p2) { return Point(p1.x+p2.x,p1.y+p2.y); } Po
^
0_0_19231061_28804.cpp:31:85: error: 'Po' does not name a type
int & p) { x += p.x; y += p.y; return *this; } friend Po
^
0_0_19231061_28804.cpp:36:55: error: 'Po' does not name a type
int u) { return Point(p.x*u,p.y*u); } Po
^
0_0_19231061_28804.cpp:40:7: error: 'Po' does not name a type
const Po
^
0_0_19231061_28804.cpp:41:1: error: expected ',' or '...' before 'int'
int & p1,
^
0_0_19231061_28804.cpp:43:9: error: 'bool operator==(int)' must have an argument of class or enumerated type
int & p2) { if(fabs(p1.x-p2.x)<EPSILON && fabs(p1.y-p2.y)<EPSILON) return true; return false; } }Vector;
^
0_0_19231061_28804.cpp: In constructor 'Point::Point(int)':
0_0_19231061_28804.cpp:23:12: error: 'p' was not declared in this scope
int & p):x(p.x),y(p.y) {} friend Po
^
0_0_19231061_28804.cpp: At global scope:
0_0_19231061_28804.cpp:49:14: error: 'Po' does not name a type
char cmd[6]; Po
^
0_0_19231061_28804.cpp: In function 'int main()':
0_0_19231061_28804.cpp:62:133: error: 'Po' was not declared in this scope
char unit[128]; while(scanf("%d",&test)==1) { for(i = 0; i<test; i++) { scanf("%d",&num); Po
^
0_0_19231061_28804.cpp:64:271: error: 'pt' was not declared in this scope
double theta = 0.0; for(j = 0; j<num; j++) { scanf("%s %s",cmd,unit); if(unit[0] == '?') break; t = atoi(unit); switch(cmd[0]) { case 'f': pt += v*t; break; case 'b': pt += v*(-t); break; case 'l': theta+=t; v = Vector(cos(PI*theta/180),sin(PI*theta/180)); break; case 'r': theta-=t; v = Vector(cos(PI*theta/180),sin(PI*theta/180)); break; } } for(k = j+1; k<num; k++) { scanf("%s %d",ls[k].str,&ls[k].u); } if(cmd[0] == 'l' || cmd[0] == 'r') { for(
^
0_0_19231061_28804.cpp:64:278: error: no match for 'operator*' (operand types are 'Vector {aka Point}' and 'int')
double theta = 0.0; for(j = 0; j<num; j++) { scanf("%s %s",cmd,unit); if(unit[0] == '?') break; t = atoi(unit); switch(cmd[0]) { case 'f': pt += v*t; break; case 'b': pt += v*(-t); break; case 'l': theta+=t; v = Vector(cos(PI*theta/180),sin(PI*theta/180)); break; case 'r': theta-=t; v = Vector(cos(PI*theta/180),sin(PI*theta/180)); break; } } for(k = j+1; k<num; k++) { scanf("%s %d",ls[k].str,&ls[k].u); } if(cmd[0] == 'l' || cmd[0] == 'r') { for(
^
0_0_19231061_28804.cpp:64:321: error: no match for 'operator*' (operand types are 'Vector {aka Point}' and 'int')
double theta = 0.0; for(j = 0; j<num; j++) { scanf("%s %s",cmd,unit); if(unit[0] == '?') break; t = atoi(unit); switch(cmd[0]) { case 'f': pt += v*t; break; case 'b': pt += v*(-t); break; case 'l': theta+=t; v = Vector(cos(PI*theta/180),sin(PI*theta/180)); break; case 'r': theta-=t; v = Vector(cos(PI*theta/180),sin(PI*theta/180)); break; } } for(k = j+1; k<num; k++) { scanf("%s %d",ls[k].str,&ls[k].u); } if(cmd[0] == 'l' || cmd[0] == 'r') { for(
^
0_0_19231061_28804.cpp:65:93: error: 'pt' was not declared in this scope
int degree = 0; degree < 360; degree++) { if(Test(theta,v,pt,j,degree) == Point(0.0,0.0) ) { printf("%d\n",degree); break; } } } else { vx = v; for(k = j+1; k<num; k++) { t = ls[k].u; switch(ls[k].str[0]) { case 'f': pt += v*t; break; case 'b': pt += v*(-t); break; case 'l': theta+=t; v = Vector(cos(PI*theta/180),sin(PI*theta/180)); break; case 'r': theta-=t; v = Vector(cos(PI*theta/180),sin(PI*theta/180)); break; } } printf("%d\n",(int)(sqrt(pt.x*pt.x + pt.y*pt.y)+0.5)); } } } return 0;}
^
0_0_19231061_28804.cpp:65:104: error: 'Test' was not declared in this scope
int degree = 0; degree < 360; degree++) { if(Test(theta,v,pt,j,degree) == Point(0.0,0.0) ) { printf("%d\n",degree); break; } } } else { vx = v; for(k = j+1; k<num; k++) { t = ls[k].u; switch(ls[k].str[0]) { case 'f': pt += v*t; break; case 'b': pt += v*(-t); break; case 'l': theta+=t; v = Vector(cos(PI*theta/180),sin(PI*theta/180)); break; case 'r': theta-=t; v = Vector(cos(PI*theta/180),sin(PI*theta/180)); break; } } printf("%d\n",(int)(sqrt(pt.x*pt.x + pt.y*pt.y)+0.5)); } } } return 0;}
^
0_0_19231061_28804.cpp:65:506: error: 'pt' was not declared in this scope
int degree = 0; degree < 360; degree++) { if(Test(theta,v,pt,j,degree) == Point(0.0,0.0) ) { printf("%d\n",degree); break; } } } else { vx = v; for(k = j+1; k<num; k++) { t = ls[k].u; switch(ls[k].str[0]) { case 'f': pt += v*t; break; case 'b': pt += v*(-t); break; case 'l': theta+=t; v = Vector(cos(PI*theta/180),sin(PI*theta/180)); break; case 'r': theta-=t; v = Vector(cos(PI*theta/180),sin(PI*theta/180)); break; } } printf("%d\n",(int)(sqrt(pt.x*pt.x + pt.y*pt.y)+0.5)); } } } return 0;}
^
0_0_19231061_28804.cpp:65:513: error: no match for 'operator*' (operand types are 'Vector {aka Point}' and 'int')
int degree = 0; degree < 360; degree++) { if(Test(theta,v,pt,j,degree) == Point(0.0,0.0) ) { printf("%d\n",degree); break; } } } else { vx = v; for(k = j+1; k<num; k++) { t = ls[k].u; switch(ls[k].str[0]) {
|