0_0_22392715_30118.cpp:17:22: error: array bound is not an integer constant before ']' token
int pos[demension],c,id;
^
0_0_22392715_30118.cpp:20:21: error: array bound is not an integer constant before ']' token
double var[demension];//方差
^
0_0_22392715_30118.cpp: In function 'bool cmp(const P&, const P&)':
0_0_22392715_30118.cpp:24:14: error: 'const struct P' has no member named 'pos'
return a.pos[cmpDem]<b.pos[cmpDem];
^
0_0_22392715_30118.cpp:24:28: error: 'const struct P' has no member named 'pos'
return a.pos[cmpDem]<b.pos[cmpDem];
^
0_0_22392715_30118.cpp: In function 'void build(int, int)':
0_0_22392715_30118.cpp:34:31: error: 'struct P' has no member named 'pos'
ave+=hotel[j].pos[i];
^
0_0_22392715_30118.cpp:37:13: error: 'var' was not declared in this scope
var[i]=0;//方差
^
0_0_22392715_30118.cpp:39:35: error: 'struct P' has no member named 'pos'
var[i]+=(hotel[j].pos[i]-ave)*(hotel[j].pos[i]-ave);
^
0_0_22392715_30118.cpp:39:57: error: 'struct P' has no member named 'pos'
var[i]+=(hotel[j].pos[i]-ave)*(hotel[j].pos[i]-ave);
^
0_0_22392715_30118.cpp:47:16: error: 'var' was not declared in this scope
if(var[i]>maxVar){
^
0_0_22392715_30118.cpp: In function 'void query(int, int, P)':
0_0_22392715_30118.cpp:71:22: error: 'struct P' has no member named 'pos'
dis+=(ll)(op.pos[i]-hotel[mid].pos[i])*(op.pos[i]-hotel[mid].pos[i]);
^
0_0_22392715_30118.cpp:71:40: error: 'struct P' has no member named 'pos'
dis+=(ll)(op.pos[i]-hotel[mid].pos[i])*(op.pos[i]-hotel[mid].pos[i]);
^
0_0_22392715_30118.cpp:71:52: error: 'struct P' has no member named 'pos'
dis+=(ll)(op.pos[i]-hotel[mid].pos[i])*(op.pos[i]-hotel[mid].pos[i]);
^
0_0_22392715_30118.cpp:71:70: error: 'struct P' has no member named 'pos'
dis+=(ll)(op.pos[i]-hotel[mid].pos[i])*(op.pos[i]-hotel[mid].pos[i]);
^
0_0_22392715_30118.cpp:84:23: error: 'struct P' has no member named 'pos'
ll radius=(ll)(op.pos[d]-hotel[mid].pos[d])*(op.pos[d]-hotel[mid].pos[d]);//到分裂平面距离
^
0_0_22392715_30118.cpp:84:41: error: 'struct P' has no member named 'pos'
ll radius=(ll)(op.pos[d]-hotel[mid].pos[d])*(op.pos[d]-hotel[mid].pos[d]);//到分裂平面距离
^
0_0_22392715_30118.cpp:84:53: error: 'struct P' has no member named 'pos'
ll radius=(ll)(op.pos[d]-hotel[mid].pos[d])*(op.pos[d]-hotel[mid].pos[d]);//到分裂平面距离
^
0_0_22392715_30118.cpp:84:71: error: 'struct P' has no member named 'pos'
ll radius=(ll)(op.pos[d]-hotel[mid].pos[d])*(op.pos[d]-hotel[mid].pos[d]);//到分裂平面距离
^
0_0_22392715_30118.cpp:85:11: error: 'struct P' has no member named 'pos'
if(op.pos[d]<hotel[mid].pos[d]){
^
0_0_22392715_30118.cpp:85:29: error: 'struct P' has no member named 'pos'
if(op.pos[d]<hotel[mid].pos[d]){
^
0_0_22392715_30118.cpp: In function 'int main()':
0_0_22392715_30118.cpp:108:38: error: 'struct P' has no member named 'pos'
scanf("%d%d%d",&hotel[i].pos[0],&hotel[i].pos[1],&hotel[i].c);
^
0_0_22392715_30118.cpp:108:55: error: 'struct P' has no member named 'pos'
scanf("%d%d%d",&hotel[i].pos[0],&hotel[i].pos[1],&hotel[i].c);
^
0_0_22392715_30118.cpp:114:31: error: 'struct P' has no member named 'pos'
scanf("%d%d%d",&p.pos[0],&p.pos[1],&p.c);
^
0_0_22392715_30118.cpp:114:41: error: 'struct P' has no member named 'pos'
scanf("%d%d%d",&p.pos[0],&p.pos[1],&p.c);
^
0_0_22392715_30118.cpp:118:49: error: 'struct P' has no member named 'pos'
printf("%d %d %d\n",hotel[ansIndex].pos[0],hotel[ansIndex].pos[1],hotel[ansIndex].c);
^
0_0_22392715_30118.cpp:118:72: error: 'struct P' has no member named 'pos'
printf("%d %d %d\n",hotel[ansIndex].pos[0],hotel[ansIndex].pos[1],hotel[ansIndex].c);
^
|