prog.cpp: In function ‘int main()’:
prog.cpp:56:18: error: ‘Pt’ was not declared in this scope
if(dSP(Pt(x1,y1),Pt(x2,y1),Pt(0,0))>r){
^
prog.cpp:56:37: error: ‘dSP’ was not declared in this scope
if(dSP(Pt(x1,y1),Pt(x2,y1),Pt(0,0))>r){
^
prog.cpp:63:15: error: ‘Pt’ was not declared in this scope
if(Pt(x1,y2).Abs()<r){
^
prog.cpp:72:15: error: ‘Pt’ was not declared in this scope
if(Pt(x2,y1).Abs()<r){
^
prog.cpp:84:31: error: ‘Pt’ was not declared in this scope
if(ls>2&&rs>2&&iCC(Pt(x1,y2),L[2],Pt(x2,y2),R[2])==1){
^
prog.cpp:84:52: error: ‘iCC’ was not declared in this scope
if(ls>2&&rs>2&&iCC(Pt(x1,y2),L[2],Pt(x2,y2),R[2])==1){
^
prog.cpp:85:24: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _T1, class _T2> struct std::pair’
use[1]++; pair<Pt,Pt> W=pCC(Pt(x1,y2),L[2],Pt(x2,y2),R[2]);
^
prog.cpp:85:24: error: expected a type, got ‘Pt’
prog.cpp:85:24: error: type/value mismatch at argument 2 in template parameter list for ‘template<class _T1, class _T2> struct std::pair’
prog.cpp:85:24: error: expected a type, got ‘Pt’
prog.cpp:85:27: error: invalid type in declaration before ‘=’ token
use[1]++; pair<Pt,Pt> W=pCC(Pt(x1,y2),L[2],Pt(x2,y2),R[2]);
^
prog.cpp:85:61: error: ‘pCC’ was not declared in this scope
use[1]++; pair<Pt,Pt> W=pCC(Pt(x1,y2),L[2],Pt(x2,y2),R[2]);
^
prog.cpp:86:10: error: request for member ‘first’ in ‘W’, which is of non-class type ‘int’
if(W.first.x<x2&&W.first.x>x1&&W.first.y>y2){
^
prog.cpp:86:24: error: request for member ‘first’ in ‘W’, which is of non-class type ‘int’
if(W.first.x<x2&&W.first.x>x1&&W.first.y>y2){
^
prog.cpp:86:38: error: request for member ‘first’ in ‘W’, which is of non-class type ‘int’
if(W.first.x<x2&&W.first.x>x1&&W.first.y>y2){
^
prog.cpp:87:9: error: expected ‘;’ before ‘q’
Pt q=W.first;
^
prog.cpp:88:9: error: expected ‘;’ before ‘pL’
Pt pL=q-Pt(x1,y2);
^
prog.cpp:89:9: error: expected ‘;’ before ‘pR’
Pt pR=q-Pt(x2,y2);
^
prog.cpp:93:18: error: ‘pR’ was not declared in this scope
ret+=(atan2(pR.y,pR.x)-PI/2)*R[2];
^
prog.cpp:94:31: error: ‘pL’ was not declared in this scope
ret+=(atan2(y2,x1)-atan2(pL.y,pL.x))*L[2];
^
prog.cpp:97:10: error: request for member ‘second’ in ‘W’, which is of non-class type ‘int’
if(W.second.x<x2&&W.second.x>x1&&W.second.y>y2){
^
prog.cpp:97:25: error: request for member ‘second’ in ‘W’, which is of non-class type ‘int’
if(W.second.x<x2&&W.second.x>x1&&W.second.y>y2){
^
prog.cpp:97:40: error: request for member ‘second’ in ‘W’, which is of non-class type ‘int’
if(W.second.x<x2&&W.second.x>x1&&W.second.y>y2){
^
prog.cpp:98:9: error: expected ‘;’ before ‘q’
Pt q=W.second;
^
prog.cpp:99:9: error: expected ‘;’ before ‘pL’
Pt pL=q-Pt(x1,y2);
^
prog.cpp:100:9: error: expected ‘;’ before ‘pR’
Pt pR=q-Pt(x2,y2);
^
prog.cpp:104:18: error: ‘pR’ was not declared in this scope
ret+=(atan2(pR.y,pR.x)-PI/2)*R[2];
^
prog.cpp:105:31: error: ‘pL’ was not declared in this scope
ret+=(atan2(y2,x1)-atan2(pL.y,pL.x))*L[2];
^
prog.cpp:109:31: error: ‘Pt’ was not declared in this scope
if(ls>2&&rs>1&&iCC(Pt(x1,y2),L[2],Pt(x2,y1),R[1])==1){
^
prog.cpp:109:52: error: ‘iCC’ was not declared in this scope
if(ls>2&&rs>1&&iCC(Pt(x1,y2),L[2],Pt(x2,y1),R[1])==1){
^
prog.cpp:110:24: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _T1, class _T2> struct std::pair’
use[2]++; pair<Pt,Pt> W=pCC(Pt(x1,y2),L[2],Pt(x2,y1),R[1]);
^
prog.cpp:110:24: error: expected a type, got ‘Pt’
prog.cpp:110:24: error: type/value mismatch at argument 2 in template parameter list for ‘template<class _T1, class _T2> struct std::pair’
prog.cpp:110:24: error: expected a type, got ‘Pt’
prog.cpp:110:27: error: invalid type in declaration before ‘=’ token
use[2]++; pair<Pt,Pt> W=pCC(Pt(x1,y2),L[2],Pt(x2,y1),R[1]);
^
prog.cpp:110:61: error: ‘pCC’ was not declared in this scope
use[2]++; pair<Pt,Pt> W=pCC(Pt(x1,y2),L[2],Pt(x2,y1),R[1]);
^
prog.cpp:111:10: error: request for member ‘first’ in ‘W’, which is of non-class type ‘int’
if(W.first.x>x2&&W.first.y>y2){
^
prog.cpp:111:24: error: request for member ‘first’ in ‘W’, which is of non-class type ‘int’
if(W.first.x>x2&&W.first.y>y2){
^
prog.cpp:112:9: error: expected ‘;’ before ‘q’
Pt q=W.first;
^
prog.cpp:113:9: error: expected ‘;’ before ‘pL’
Pt pL=q-Pt(x1,y2);
^
prog.cpp:114:9: error: expected ‘;’ before ‘pR’
Pt pR=q-Pt(x2,y1);
^
prog.cpp:117:18: error: ‘pR’ was not declared in this scope
ret+=(atan2(pR.y,pR.x)-atan2(y1,x2))*R[1];
^
prog.cpp:118:31: error: ‘pL’ was not declared in this scope
ret+=(atan2(y2,x1)-atan2(pL.y,pL.x))*L[2];
^
prog.cpp:121:10: error: request for member ‘second’ in ‘W’, which is of non-class type ‘int’
if(W.second.x>x2&&W.second.y>y2){
^
prog.cpp:121:25: error: request for member ‘second’ in ‘W’, which is of non-class type ‘int’
if(W.second.x>x2&&W.second.y>y2){
^
prog.cpp:122:9: error: expected ‘;’ before ‘q’
Pt q=W.second;
^
prog.cpp:123:9: error: expected ‘;’ before ‘pL’
Pt pL=q-Pt(x1,y2);
^
prog.cpp:124:9: error: expected ‘;’ before ‘pR’
Pt pR=q-Pt(x2,y1);
^
prog.cpp:127:18: error: ‘pR’ was not declared in this scope
ret+=(atan2(pR.y,pR.x)-atan2(y1,x2))*R[1];
^
prog.cpp:128:31: error: ‘pL’ was not declared in this scope
ret+=(atan2(y2,x1)-atan2(pL.y,pL.x))*L[2];
^
prog.cpp:132:31: error: ‘Pt’ was not declared in this scope
if(ls>3&&rs>1&&iCC(Pt(x2,y2),L[3],Pt(x2,y1),R[1])==1){
^
prog.cpp:132:52: error: ‘iCC’ was not declared in this scope
if(ls>3&&rs>1&&iCC(Pt(x2,y2),L[3],Pt(x2,y1),R[1])==1){
^
prog.cpp:133:24: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _T1, class _T2> struct std::pair’
use[3]++; pair<Pt,Pt> W=pCC(Pt(x2,y2),L[3],Pt(x2,y1),R[1]);
^
prog.cpp:133:24: error: expected a type, got ‘Pt’
prog.cpp:133:24: error: type/value mismatch at argument 2 in template parameter list for ‘template<class _T1, class _T2> struct std::pair’
prog.cpp:133:24: error: expected a type, got ‘Pt’
prog.cpp:133:27: error: invalid type in declaration before ‘=’ token
use[3]++; pair<Pt,Pt> W=pCC(Pt(x2,y2),L[3],Pt(x2,y1),R[1]);
^
prog.cpp:133:61: error: ‘pCC’ was not declared in this scope
use[3]++; pair<Pt,Pt> W=pCC(Pt(x2,y2),L[3],Pt(x2,y1),R[1]);
^
prog.cpp:134:10: error: request for member ‘first’ in ‘W’, which is of non-class type ‘int’
if(W.first.x>x2&&W.first.y>y1&&W.first.y<y2){
^
prog.cpp:134:24: error: request for member ‘first’ in ‘W’, which is of non-class type ‘int’
if(W.first.x>x2&&W.first.y>y1&&W.first.y<y2){
^
prog.cpp:134:38: error: request for member ‘first’ in ‘W’, which is of non-class type ‘int’
if(W.first.x>x2&&W.first.y>y1&&W.first.y<y2){
^
prog.cpp:135:9: error: expected ‘;’ before ‘q’
Pt q=W.first;
^
prog.cpp:136:9: error: expected ‘;’ before ‘pL’
Pt pL=q-Pt(x2,y2);
^
prog.cpp:137:9: error: expected ‘;’ before ‘pR’
Pt pR=q-Pt(x2,y1);
^
prog.cpp:140:32: error: ‘pR’ was not declared in this scope
ret+=(-atan2(y1,x2)+atan2(pR.y,pR.x))*R[1];
^
prog.cpp:142:19: error: ‘pL’ was not declared in this scope
ret+=(-atan2(pL.y,pL.x))*L[3];
^
prog.cpp:145:10: error: request for member ‘second’ in ‘W’, which is of non-class type ‘int’
if(W.second.x>x2&&W.second.y>y1&&W.second.y<y2){
^
prog.cpp:145:25: error: request for member ‘second’ in ‘W’, which is of non-class type ‘int’
if(W.second.x>x2&&W.second.y>y1&&W.second.y<y2){
^
prog.cpp:145:40: error: request for member ‘second’ in ‘W’, which is of non-class type ‘int’
if(W.second.x>x2&&W.second.y>y1&&W.second.y<y2){
^
prog.cpp:146:9: error: expected ‘;’ before ‘q’
Pt q=W.second;
^
prog.cpp:147:9: error: expected ‘;’ before ‘pL’
Pt pL=q-Pt(x2,y2);
^
prog.cpp:148:9: error: expected ‘;’ before ‘pR’
Pt pR=q-Pt(x2,y1);
^
prog.cpp:151:32: error: ‘pR’ was not declared in this scope
ret+=(-atan2(y1,x2)+atan2(pR.y,pR.x))*R[1];
^
prog.cpp:153:19: error: ‘pL’ was not declared in this scope
ret+=(-atan2(pL.y,pL.x))*L[3];
^
prog.cpp:158:15: error: ‘Pt’ was not declared in this scope
if(Pt(x1,y2).Abs()>r){
^
prog.cpp:159:24: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _T1, class _T2> struct std::pair’
use[4]++; pair<Pt,Pt> D=pCL(Pt(0,0),r,Pt(x1,y1),Pt(x1,y2));
^
prog.cpp:159:24: error: expected a type, got ‘Pt’
prog.cpp:159:24: error: type/value mismatch at argument 2 in template parameter list for ‘template<class _T1, class _T2> struct std::pair’
prog.cpp:159:24: error: expected a type, got ‘Pt’
prog.cpp:159:27: error: invalid type in declaration before ‘=’ token
use[4]++; pair<Pt,Pt> D=pCL(Pt(0,0),r,Pt(x1,y1),Pt(x1,y2));
^
prog.cpp:159:61: error: ‘pCL’ was not declared in this scope
use[4]++; pair<Pt,Pt> D=pCL(Pt(0,0),r,Pt(x1,y1),Pt(x1,y2));
^
prog.cpp:160:10: error: request for member ‘first’ in ‘D’, which is of non-class type ‘int’
if(D.first.y>0){
^
prog.cpp:161:23: error: request for member ‘first’ in ‘D’, which is of non-class type ‘int’
ret+=(PI-atan2(D.first.y,D.first.x))*r;
^
prog.cpp:161:33: error: request for member ‘first’ in ‘D’, which is of non-class type ‘int’
ret+=(PI-atan2(D.first.y,D.first.x))*r;
^
prog.cpp:162:28: error: request for member ‘second’ in ‘D’, which is of non-class type ‘int’
}else ret+=(PI-atan2(D.second.y,D.second.x))*r;
^
prog.cpp:162:39: error: request for member ‘second’ in ‘D’, which is of non-class type ‘int’
}else ret+=(PI-atan2(D.second.y,D.second.x))*r;
^
prog.cpp:168:15: error: ‘Pt’ was not declared in this scope
if(Pt(x2,y1).Abs()>r){
^
prog.cpp:169:24: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _T1, class _T2> struct std::pair’
use[6]++; pair<Pt,Pt> D=pCL(Pt(0,0),r,Pt(x1,y1),Pt(x2,y1));
^
prog.cpp:169:24: error: expected a type, got ‘Pt’
prog.cpp:169:24: error: type/value mismatch at argument 2 in template parameter list for ‘template<class _T1, class _T2> struct std::pair’
prog.cpp:169:24: error: expected a type, got ‘Pt’
prog.cpp:169:27: error: invalid type in declaration before ‘=’ token
use[6]++; pair<Pt,Pt> D=pCL(Pt(0,0),r,Pt(x1,y1),Pt(x2,y1));
^
prog.cpp:169:61: error: ‘pCL’ was not declared in this scope
use[6]++; pair<Pt,Pt> D=pCL(Pt(0,0),r,Pt(x1,y1),Pt(x2,y1));
^
prog.cpp:170:10: error: request for member ‘first’ in ‘D’, which is of non-class type ‘int’
if(D.first.x>D.second.x){
^
prog.cpp:170:20: error: request for member ‘second’ in ‘D’, which is of non-class type ‘int’
if(D.first.x>D.second.x){
^
prog.cpp:171:20: error: request for member ‘first’ in ‘D’, which is of non-class type ‘int’
ret+=(atan2(D.first.y,D.first.x))*r;
^
prog.cpp:171:30: error: request for member ‘first’ in ‘D’, which is of non-class type ‘int’
ret+=(atan2(D.first.y,D.first.x))*r;
^
prog.cpp:173:20: error: request for member ‘second’ in ‘D’, which is of non-class type ‘int’
ret+=(atan2(D.second.y,D.second.x))*r;
^
prog.cpp:173:31: error: request for member ‘second’ in ‘D’, which is of non-class type ‘int’
ret+=(atan2(D.second.y,D.second.x))*r;
^
prog.cpp:183:14: error: ‘Pt’ was not declared in this scope
if(Pt(x1,y1).Abs()<r){
^
prog.cpp:195:14: error: ‘Pt’ was not declared in this scope
if(Pt(x2,y1).Abs()<r){
^
prog.cpp:208:30: error: ‘Pt’ was not declared in this scope
if(ls>1&&rs>2&&iCC(Pt(x1,y1),L[1],Pt(x2,y2),R[2])==1){
^
prog.cpp:208:51: error: ‘iCC’ was not declared in this scope
if(ls>1&&rs>2&&iCC(Pt(x1,y1),L[1],Pt(x2,y2),R[2])==1){
^
prog.cpp:209:23: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _T1, class _T2> struct std::pair’
use[8]++; pair<Pt,Pt> W=pCC(Pt(x1,y1),L[1],Pt(x2,y2),R[2]);
^
prog.cpp:209:23: error: expected a type, got ‘Pt’
prog.cpp:209:23: error: type/value mismatch at argument 2 in template parameter list for ‘template<class _T1, class _T2> struct std::pair’
prog.cpp:209:23: error: expected a type, got ‘Pt’
prog.cpp:209:26: error: invalid type in declaration before ‘=’ token
use[8]++; pair<Pt,Pt> W=pCC(Pt(x1,y1),L[1],Pt(x2,y2),R[2]);
^
prog.cpp:209:60: error: ‘pCC’ was not declared in this scope
use[8]++; pair<Pt,Pt> W=pCC(Pt(x1,y1),L[1],Pt(x2,y2),R[2]);
^
prog.cpp:210:9: error: request for member ‘first’ in ‘W’, which is of non-class type ‘int’
if(W.first.x<x1&&W.first.y>y2){
^
prog.cpp:210:23: error: request for member ‘first’ in ‘W’, which is of non-class type ‘int’
if(W.first.x<x1&&W.first.y>y2){
^
prog.cpp:211:8: error: expected ‘;’ before ‘q’
Pt q=W.first;
^
prog.cpp:212:8: error: expected ‘;’ before ‘pL’
Pt pL=q-Pt(x1,y1);
^
prog.cpp:213:8: error: expected ‘;’ before ‘pR’
Pt pR=q-Pt(x2,y2);
^
prog.cpp:216:30: error: ‘pL’ was not declared in this scope
ret+=(atan2(y1,x1)-atan2(pL.y,pL.x))*L[1];
^
prog.cpp:218:17: error: ‘pR’ was not declared in this scope
ret+=(atan2(pR.y,pR.x)-PI/2)*R[2];
^
prog.cpp:221:9: error: request for member ‘second’ in ‘W’, which is of non-class type ‘int’
if(W.second.x<x1&&W.second.y>y2){
^
prog.cpp:221:24: error: request for member ‘second’ in ‘W’, which is of non-class type ‘int’
if(W.second.x<x1&&W.second.y>y2){
^
prog.cpp:222:8: error: expected ‘;’ before ‘q’
Pt q=W.second;
^
prog.cpp:223:8: error: expected ‘;’ before ‘pL’
Pt pL=q-Pt(x1,y1);
^
prog.cpp:224:8: error: expected ‘;’ before ‘pR’
Pt pR=q-Pt(x2,y2);
^
prog.cpp:227:30: error: ‘pL’ was not declared in this scope
ret+=(atan2(y1,x1)-atan2(pL.y,pL.x))*L[1];
^
prog.cpp:229:17: error: ‘pR’ was not declared in this scope
ret+=(atan2(pR.y,pR.x)-PI/2)*R[2];
^
prog.cpp:233:30: error: ‘Pt’ was not declared in this scope
if(ls>1&&rs>3&&iCC(Pt(x1,y1),L[1],Pt(x1,y2),R[3])==1){
^
prog.cpp:233:51: error: ‘iCC’ was not declared in this scope
if(ls>1&&rs>3&&iCC(Pt(x1,y1),L[1],Pt(x1,y2),R[3])==1){
^
prog.cpp:234:23: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _T1, class _T2> struct std::pair’
use[9]++; pair<Pt,Pt> W=pCC(Pt(x1,y1),L[1],Pt(x1,y2),R[3]);
^
prog.cpp:234:23: error: expected a type, got ‘Pt’
prog.cpp:234:23: error: type/value mismatch at argument 2 in template parameter list for ‘template<class _T1, class _T2> struct std::pair’
prog.cpp:234:23: error: expected a type, got ‘Pt’
prog.cpp:234:26: error: invalid type in declaration before ‘=’ token
use[9]++; pair<Pt,Pt> W=pCC(Pt(x1,y1),L[1],Pt(x1,y2),R[3]);
^
prog.cpp:234:60: error: ‘pCC’ was not declared in this scope
use[9]++; pair<Pt,Pt> W=pCC(Pt(x1,y1),L[1],Pt(x1,y2),R[3]);
^
prog.cpp:235:9: error: request for member ‘first’ in ‘W’, which is of non-class type ‘int’
if(W.first.x<x1&&W.first.y>y1&&W.first.y<y2){
^
prog.cpp:235:23: error: request for member ‘first’ in ‘W’, which is of non-class type ‘int’
if(W.first.x<x1&&W.first.y>y1&&W.first.y<y2){
^
prog.cpp:235:37: error: request for member ‘first’ in ‘W’, which is of non-class type ‘int’
if(W.first.x<x1&&W.first.y>y1&&W.first.y<y2){
^
prog.cpp:236:8: error: expected ‘;’ before ‘q’
Pt q=W.first;
^
prog.cpp:237:8: error: expected ‘;’ before ‘pL’
Pt pL=q-Pt(x1,y1);
^
prog.cpp:238:8: error: expected ‘;’ before ‘pR’
Pt pR=q-Pt(x1,y2);
^
prog.cpp:241:30: error: ‘pL’ was not declared in this scope
ret+=(atan2(y1,x1)-atan2(pL.y,pL.x))*L[1];
^
prog.cpp:244:17: error: ‘pR’ was not declared in this scope
ret+=(atan2(pR.y,pR.x)-PI)*R[3];
^
prog.cpp:247:9: error: request for member ‘second’ in ‘W’, which is of non-class type ‘int’
if(W.second.x<x1&&W.second.y>y1&&W.second.y<y2){
^
prog.cpp:247:24: error: request for member ‘second’ in ‘W’, which is of non-class type ‘int’
if(W.second.x<x1&&W.second.y>y1&&W.second.y<y2){
^
prog.cpp:247:39: error: request for member ‘second’ in ‘W’, which is of non-class type ‘int’
if(W.second.x<x1&&W.second.y>y1&&W.second.y<y2){
^
prog.cpp:248:8: error: expected ‘;’ before ‘q’
Pt q=W.second;
^
prog.cpp:249:8: error: expected ‘;’ before ‘pL’
Pt pL=q-Pt(x1,y1);
^
prog.cpp:250:8: error: expected ‘;’ before ‘pR’
Pt pR=q-Pt(x1,y2);
^
prog.cpp:253:30: error: ‘pL’ was not declared in this scope
ret+=(atan2(y1,x1)-atan2(pL.y,pL.x))*L[1];
^
prog.cpp:256:17: error: ‘pR’ was not declared in this scope
ret+=(atan2(pR.y,pR.x)-PI)*R[3];
^
prog.cpp:260:30: error: ‘Pt’ was not declared in this scope
if(ls>2&&rs>1&&iCC(Pt(x1,y2),L[2],Pt(x2,y1),R[1])==1){
^
prog.cpp:260:51: error: ‘iCC’ was not declared in this scope
if(ls>2&&rs>1&&iCC(Pt(x1,y2),L[2],Pt(x2,y1),R[1])==1){
^
prog.cpp:261:24: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _T1, class _T2> struct std::pair’
use[10]++; pair<Pt,Pt> W=pCC(Pt(x1,y2),L[2],Pt(x2,y1),R[1]);
^
prog.cpp:261:24: error: expected a type, got ‘Pt’
prog.cpp:261:24: error: type/value mismatch at argument 2 in template parameter list for ‘template<class _T1, class _T2> struct std::pair’
prog.cpp:261:24: error: expected a type, got ‘Pt’
prog.cpp:261:27: error: invalid type in declaration before ‘=’ token
use[10]++; pair<Pt,Pt> W=pCC(Pt(x1,y2),L[2],Pt(x2,y1),R[1]);
^
prog.cpp:261:61: error: ‘pCC’ was not declared in this scope
use[10]++; pair<Pt,Pt> W=pCC(Pt(x1,y2),L[2],Pt(x2,y1),R[1]);
^
prog.cpp:262:9: error: request for member ‘first’ in ‘W’, which is of non-class type ‘int’
if(W.first.x>x2&&W.first.y>y2){
^
prog.cpp:262:23: error: request for member ‘first’ in ‘W’, which is of non-class type ‘int’
if(W.first.x>x2&&W.first.y>y2){
^
prog.cpp:263:8: error: expected ‘;’ before ‘q’
Pt q=W.first;
^
prog.cpp:264:8: error: expected ‘;’ before ‘pL’
Pt pL=q-Pt(x1,y2);
^
prog.cpp:265:8: error: expected ‘;’ before ‘pR’
Pt pR=q-Pt(x2,y1);
^
prog.cpp:269:17: error: ‘pR’ was not declared in this scope
ret+=(atan2(pR.y,pR.x)-atan2(y1,x2))*R[1];
^
prog.cpp:270:22: error: ‘pL’ was not declared in this scope
ret+=(PI/2-atan2(pL.y,pL.x))*L[2];
^
prog.cpp:273:9: error: request for member ‘second’ in ‘W’, which is of non-class type ‘int’
if(W.second.x>x2&&W.second.y>y2){
^
prog.cpp:273:24: error: request for member ‘second’ in ‘W’, which is of non-class type ‘int’
if(W.second.x>x2&&W.second.y>y2){
^
prog.cpp:274:8: error: expected ‘;’ before ‘q’
Pt q=W.second;
^
prog.cpp:275:8: error: expected ‘;’ before ‘pL’
Pt pL=q-Pt(x1,y2);
^
prog.cpp:276:8: error: expected ‘;’ before ‘pR’
Pt pR=q-Pt(x2,y1);
^
prog.cpp:280:17: error: ‘pR’ was not declared in this scope
ret+=(atan2(pR.y,pR.x)-atan2(y1,x2))*R[1];
^
prog.cpp:281:22: error: ‘pL’ was not declared in this scope
ret+=(PI/2-atan2(pL.y,pL.x))*L[2];
^
prog.cpp:285:30: error: ‘Pt’ was not declared in this scope
if(ls>2&&rs>2&&iCC(Pt(x1,y2),L[2],Pt(x2,y2),R[2])==1){
^
prog.cpp:285:51: error: ‘iCC’ was not declared in this scope
if(ls>2&&rs>2&&iCC(Pt(x1,y2),L[2],Pt(x2,y2),R[2])==1){
^
prog.cpp:286:24: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _T1, class _T2> struct std::pair’
use[11]++; pair<Pt,Pt> W=pCC(Pt(x1,y2),L[2],Pt(x2,y2),R[2]);
^
prog.cpp:286:24: error: expected a type, got ‘Pt’
prog.cpp:286:24: error: type/value mismatch at argument 2 in template parameter list for ‘template<class _T1, class _T2> struct std::pair’
prog.cpp:286:24: error: expected a type, got ‘Pt’
prog.cpp:286:27: error: invalid type in declaration before ‘=’ token
use[11]++; pair<Pt,Pt> W=pCC(Pt(x1,y2),L[2],Pt(x2,y2),R[2]);
^
prog.cpp:286:61: error: ‘pCC’ was not declared in this scope
use[11]++; pair<Pt,Pt> W=pCC(Pt(x1,y2),L[2],Pt(x2,y2),R[2]);
^
prog.cpp:287:9: error: request for member ‘first’ in ‘W’, which is of non-class type ‘int’
if(W.first.x<x2&&W.first.x>x1&&W.first.y>y2){
^
prog.cpp:287:23: error: request for member ‘first’ in ‘W’, which is of non-class type ‘int’
if(W.first.x<x2&&W.first.x>x1&&W.first.y>y2){
^
prog.cpp:287:37: error: request for member ‘first’ in ‘W’, which is of non-class type ‘int’
if(W.first.x<x2&&W.first.x>x1&&W.first.y>y2){
^
prog.cpp:288:8: error: expected ‘;’ before ‘q’
Pt q=W.first;
^
prog.cpp:289:8: error: expected ‘;’ before ‘pL’
Pt pL=q-Pt(x1,y2);
^
prog.cpp:290:8: error: expected ‘;’ before ‘pR’
Pt pR=q-Pt(x2,y2);
^
prog.cpp:295:17: error: ‘pR’ was not declared in this scope
ret+=(atan2(pR.y,pR.x)-PI/2)*R[2];
^
prog.cpp:296:22: error: ‘pL’ was not declared in this scope
ret+=(PI/2-atan2(pL.y,pL.x))*L[2];
^
prog.cpp:299:9: error: request for member ‘second’ in ‘W’, which is of non-class type ‘int’
if(W.second.x<x2&&W.second.x>x1&&W.second.y>y2){
^
prog.cpp:299:24: error: request for member ‘second’ in ‘W’, which is of non-class type ‘int’
if(W.second.x<x2&&W.second.x>x1&&W.second.y>y2){
^
prog.cpp:299:39: error: request for member ‘second’ in ‘W’, which is of non-class type ‘int’
if(W.second.x<x2&&W.second.x>x1&&W.second.y>y2){
^
prog.cpp:300:8: error: expected ‘;’ before ‘q’
Pt q=W.second;
^
prog.cpp:301:8: error: expected ‘;’ before ‘pL’
Pt pL=q-Pt(x1,y2);
^
prog.cpp:302:8: error: expected ‘;’ before ‘pR’
Pt pR=q-Pt(x2,y2);
^
prog.cpp:307:17: error: ‘pR’ was not declared in this scope
ret+=(atan2(pR.y,pR.x)-PI/2)*R[2];
^
prog.cpp:308:22: error: ‘pL’ was not declared in this scope
ret+=(PI/2-atan2(pL.y,pL.x))*L[2];
^
prog.cpp:312:30: error: ‘Pt’ was not declared in this scope
if(ls>3&&rs>1&&iCC(Pt(x2,y2),L[3],Pt(x2,y1),R[1])==1){
^
prog.cpp:312:51: error: ‘iCC’ was not declared in this scope
if(ls>3&&rs>1&&iCC(Pt(x2,y2),L[3],Pt(x2,y1),R[1])==1){
^
prog.cpp:313:24: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _T1, class _T2> struct std::pair’
use[12]++; pair<Pt,Pt> W=pCC(Pt(x2,y2),L[3],Pt(x2,y1),R[1]);
^
prog.cpp:313:24: error: expected a type, got ‘Pt’
prog.cpp:313:24: error: type/value mismatch at argument 2 in template parameter list for ‘template<class _T1, class _T2> struct std::pair’
prog.cpp:313:24: error: expected a type, got ‘Pt’
prog.cpp:313:27: error: invalid type in declaration before ‘=’ token
use[12]++; pair<Pt,Pt> W=pCC(Pt(x2,y2),L[3],Pt(x2,y1),R[1]);
^
prog.cpp:313:61: error: ‘pCC’ was not declared in this scope
use[12]++; pair<Pt,Pt> W=pCC(Pt(x2,y2),L[3],Pt(x2,y1),R[1]);
^
prog.cpp:314:9: error: request for member ‘first’ in ‘W’, which is of non-class type ‘int’
if(W.first.x>x2&&W.first.y>y1&&W.first.y<y2){
^
prog.cpp:314:23: error: request for member ‘first’ in ‘W’, which is of non-class type ‘int’
if(W.first.x>x2&&W.first.y>y1&&W.first.y<y2){
^
prog.cpp:314:37: error: request for member ‘first’ in ‘W’, which is of non-class type ‘int’
if(W.first.x>x2&&W.first.y>y1&&W.first.y<y2){
^
prog.cpp:315:8: error: expected ‘;’ before ‘q’
Pt q=W.first;
^
prog.cpp:316:8: error: expected ‘;’ before ‘pL’
Pt pL=q-Pt(x2,y2);
^
prog.cpp:317:8: error: expected ‘;’ before ‘pR’
Pt pR=q-Pt(x2,y1);
^
prog.cpp:320:31: error: ‘pR’ was not declared in this scope
ret+=(-atan2(y1,x2)+atan2(pR.y,pR.x))*R[1];
^
prog.cpp:323:18: error: ‘pL’ was not declared in this scope
ret+=(-atan2(pL.y,pL.x))*L[3];
^
prog.cpp:326:9: error: request for member ‘second’ in ‘W’, which is of non-class type ‘int’
if(W.second.x>x2&&W.second.y>y1&&W.second.y<y2){
^
prog.cpp:326:24: error: request for member ‘second’ in ‘W’, which is of non-class type ‘int’
if(W.second.x>x2&&W.second.y>y1&&W.second.y<y2){
^
prog.cpp:326:39: error: request for member ‘second’ in ‘W’, which is of non-class type ‘int’
if(W.second.x>x2&&W.second.y>y1&&W.second.y<y2){
^
prog.cpp:327:8: error: expected ‘;’ before ‘q’
Pt q=W.second;
^
prog.cpp:328:8: error: expected ‘;’ before ‘pL’
Pt pL=q-Pt(x2,y2);
^
prog.cpp:329:8: error: expected ‘;’ before ‘pR’
Pt pR=q-Pt(x2,y1);
^
prog.cpp:332:31: error: ‘pR’ was not declared in this scope
ret+=(-atan2(y1,x2)+atan2(pR.y,pR.x))*R[1];
^
prog.cpp:335:18: error: ‘pL’ was not declared in this scope
ret+=(-atan2(pL.y,pL.x))*L[3];
^
prog.cpp:339:14: error: ‘Pt’ was not declared in this scope
if(Pt(x1,y1).Abs()>r){
^
prog.cpp:340:24: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _T1, class _T2> struct std::pair’
use[13]++; pair<Pt,Pt> D=pCL(Pt(0,0),r,Pt(x1,y1),Pt(x2,y1));
^
prog.cpp:340:24: error: expected a type, got ‘Pt’
prog.cpp:340:24: error: type/value mismatch at argument 2 in template parameter list for ‘template<class _T1, class _T2> struct std::pair’
prog.cpp:340:24: error: expected a type, got ‘Pt’
prog.cpp:340:27: error: invalid type in declaration before ‘=’ token
use[13]++; pair<Pt,Pt> D=pCL(Pt(0,0),r,Pt(x1,y1),Pt(x2,y1));
^
prog.cpp:340:61: error: ‘pCL’ was not declared in this scope
use[13]++; pair<Pt,Pt> D=pCL(Pt(0,0),r,Pt(x1,y1),Pt(x2,y1));
^
prog.cpp:341:9: error: request for member ‘first’ in ‘D’, which is of non-class type ‘int’
if(D.first.x<D.second.x){
^
prog.cpp:341:19: error: request for member ‘second’ in ‘D’, which is of non-class type ‘int’
if(D.first.x<D.second.x){
^
prog.cpp:342:22: error: request for member ‘first’ in ‘D’, which is of non-class type ‘int’
ret+=(PI-atan2(D.first.y,D.first.x))*r;
^
prog.cpp:342:32: error: request for member ‘first’ in ‘D’, which is of non-class type ‘int’
ret+=(PI-atan2(D.first.y,D.first.x))*r;
^
prog.cpp:343:27: error: request for member ‘second’ in ‘D’, which is of non-class type ‘int’
}else ret+=(PI-atan2(D.second.y,D.second.x))*r;
^
prog.cpp:343:38: error: request for member ‘second’ in ‘D’, which is of non-class type ‘int’
}else ret+=(PI-atan2(D.second.y,D.second.x))*r;
^
prog.cpp:350:14: error: ‘Pt’ was not declared in this scope
if(Pt(x2,y1).Abs()>r){
^
prog.cpp:351:24: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _T1, class _T2> struct std::pair’
use[15]++; pair<Pt,Pt> D=pCL(Pt(0,0),r,Pt(x1,y1),Pt(x2,y1));
^
prog.cpp:351:24: error: expected a type, got ‘Pt’
prog.cpp:351:24: error: type/value mismatch at argument 2 in template parameter list for ‘template<class _T1, class _T2> struct std::pair’
prog.cpp:351:24: error: expected a type, got ‘Pt’
prog.cpp:351:27: error: invalid type in declaration before ‘=’ token
use[15]++; pair<Pt,Pt> D=pCL(Pt(0,0),r,Pt(x1,y1),Pt(x2,y1));
^
prog.cpp:351:61: error: ‘pCL’ was not declared in this scope
use[15]++; pair<Pt,Pt> D=pCL(Pt(0,0),r,Pt(x1,y1),Pt(x2,y1));
^
prog.cpp:352:9: error: request for member ‘first’ in ‘D’, which is of non-class type ‘int’
if(D.first.x>D.second.x){
^
prog.cpp:352:19: error: request for member ‘second’ in ‘D’, which is of non-class type ‘int’
if(D.first.x>D.second.x){
^
prog.cpp:353:19: error: request for member ‘first’ in ‘D’, which is of non-class type ‘int’
ret+=(atan2(D.first.y,D.first.x))*r;
^
prog.cpp:353:29: error: request for member ‘first’ in ‘D’, which is of non-class type ‘int’
ret+=(atan2(D.first.y,D.first.x))*r;
^
prog.cpp:355:19: error: request for member ‘second’ in ‘D’, which is of non-class type ‘int’
ret+=(atan2(D.second.y,D.second.x))*r;
^
prog.cpp:355:30: error: request for member ‘second’ in ‘D’, which is of non-class type ‘int’
ret+=(atan2(D.second.y,D.second.x))*r;
^