0_0_33140720_752.cpp:84:8: error: 'point' was not declared in this scope
LL dis(point a,point b)
^
0_0_33140720_752.cpp:84:16: error: 'point' was not declared in this scope
LL dis(point a,point b)
^
0_0_33140720_752.cpp:84:23: error: expression list treated as compound expression in initializer [-fpermissive]
LL dis(point a,point b)
^
0_0_33140720_752.cpp:85:1: error: expected ',' or ';' before '{' token
{
^
0_0_33140720_752.cpp:88:12: error: 'point' has not been declared
LL f(int x,point q) //欧几里得距离估价函数
^
0_0_33140720_752.cpp: In function 'LL f(int, int)':
0_0_33140720_752.cpp:94:14: error: request for member 'd' in 'q', which is of non-class type 'int'
if(q.d[k]<=mn[x][k])dis+=sqr(q.d[k]-mn[x][k]);
^
0_0_33140720_752.cpp:94:20: error: 'mn' was not declared in this scope
if(q.d[k]<=mn[x][k])dis+=sqr(q.d[k]-mn[x][k]);
^
0_0_33140720_752.cpp:94:40: error: request for member 'd' in 'q', which is of non-class type 'int'
if(q.d[k]<=mn[x][k])dis+=sqr(q.d[k]-mn[x][k]);
^
0_0_33140720_752.cpp:37:18: note: in definition of macro 'sqr'
#define sqr(x) ((x)*(x))
^
0_0_33140720_752.cpp:94:40: error: request for member 'd' in 'q', which is of non-class type 'int'
if(q.d[k]<=mn[x][k])dis+=sqr(q.d[k]-mn[x][k]);
^
0_0_33140720_752.cpp:37:22: note: in definition of macro 'sqr'
#define sqr(x) ((x)*(x))
^
0_0_33140720_752.cpp:95:14: error: request for member 'd' in 'q', which is of non-class type 'int'
if(q.d[k]>=mx[x][k])dis+=sqr(q.d[k]-mx[x][k]);
^
0_0_33140720_752.cpp:95:20: error: 'mx' was not declared in this scope
if(q.d[k]>=mx[x][k])dis+=sqr(q.d[k]-mx[x][k]);
^
0_0_33140720_752.cpp:95:40: error: request for member 'd' in 'q', which is of non-class type 'int'
if(q.d[k]>=mx[x][k])dis+=sqr(q.d[k]-mx[x][k]);
^
0_0_33140720_752.cpp:37:18: note: in definition of macro 'sqr'
#define sqr(x) ((x)*(x))
^
0_0_33140720_752.cpp:95:40: error: request for member 'd' in 'q', which is of non-class type 'int'
if(q.d[k]>=mx[x][k])dis+=sqr(q.d[k]-mx[x][k]);
^
0_0_33140720_752.cpp:37:22: note: in definition of macro 'sqr'
#define sqr(x) ((x)*(x))
^
0_0_33140720_752.cpp: At global scope:
0_0_33140720_752.cpp:100:18: error: 'point' has not been declared
void query(int x,point q) //查询欧几里得最近距离
^
0_0_33140720_752.cpp: In function 'void query(int, int)':
0_0_33140720_752.cpp:103:13: error: 'ls' was not declared in this scope
LL ld=f(ls,q),rd=f(rs,q),d=dis(q,p[x]);
^
0_0_33140720_752.cpp:105:8: error: 'd' was not declared in this scope
if(d<ans)ans=d,id=q.id;
^
0_0_33140720_752.cpp:105:25: error: request for member 'id' in 'q', which is of non-class type 'int'
if(d<ans)ans=d,id=q.id;
^
0_0_33140720_752.cpp:106:21: error: 'p' was not declared in this scope
else if(d==ans&&p[x].id<id)id=p[x].id;
^
0_0_33140720_752.cpp:108:11: error: 'rd' was not declared in this scope
if(ld<rd)
^
0_0_33140720_752.cpp:111:26: error: 'rs' was not declared in this scope
if(rd<=ans)query(rs,q);
^
0_0_33140720_752.cpp:115:26: error: 'rs' was not declared in this scope
if(rd<=ans)query(rs,q);
^
0_0_33140720_752.cpp: In function 'void init()':
0_0_33140720_752.cpp:129:5: error: 'root' was not declared in this scope
root=last=cnt=h=0;
^
0_0_33140720_752.cpp:129:10: error: 'last' was not declared in this scope
root=last=cnt=h=0;
^
0_0_33140720_752.cpp:129:15: error: 'cnt' was not declared in this scope
root=last=cnt=h=0;
^
0_0_33140720_752.cpp:129:19: error: 'h' was not declared in this scope
root=last=cnt=h=0;
^
0_0_33140720_752.cpp: In function 'int work()':
0_0_33140720_752.cpp:135:23: error: 'n' was not declared in this scope
scanf("%d%d",&n,&m),init();
^
0_0_33140720_752.cpp:135:26: error: 'm' was not declared in this scope
scanf("%d%d",&n,&m),init();
^
0_0_33140720_752.cpp:144:17: error: 'point' was not declared in this scope
point t;
^
0_0_33140720_752.cpp:145:17: error: 't' was not declared in this scope
t.d[0]=a[head].x;
^
0_0_33140720_752.cpp:148:24: error: 'root' was not declared in this scope
insert(root,0,t);
^
0_0_33140720_752.cpp:148:32: error: 'insert' was not declared in this scope
insert(root,0,t);
^
0_0_33140720_752.cpp:151:13: error: 'point' was not declared in this scope
point t; t.d[0]=b[i].x,t.d[1]=b[i].y;
^
0_0_33140720_752.cpp:151:22: error: 't' was not declared in this scope
point t; t.d[0]=b[i].x,t.d[1]=b[i].y;
^
0_0_33140720_752.cpp:152:35: error: 'root' was not declared in this scope
ans=linf,id=n+1,query(root,t);
^
|