/in/foo.cc:4:7: error: 'maxn' does not name a type
const maxn = 21;
^~~~
/in/foo.cc:5:7: error: 'INF' does not name a type
const INF = 1e10;
^~~
/in/foo.cc:8:7: error: 'maxn' was not declared in this scope
}node[maxn];
^~~~
/in/foo.cc:10:10: error: 'maxn' was not declared in this scope
double d[maxn][1<<maxn];
^~~~
/in/foo.cc:10:19: error: 'maxn' was not declared in this scope
double d[maxn][1<<maxn];
^~~~
/in/foo.cc: In function 'double dis(Node&, Node&)':
/in/foo.cc:13:97: error: 'sqrt' was not declared in this scope
return sqrt((a.x - b.x) * (a.x - b.x) + (a.y - b.y)* (a.y - b.y) + (a.z - b.z) * (a.z - b.z));
^
/in/foo.cc: In function 'void dp()':
/in/foo.cc:19:35: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
for(int s = 0; s < (1 << i+1); s++)
~^~
/in/foo.cc:21:23: error: 'd' was not declared in this scope
if(s == 0)d[i][s] = 0;
^
/in/foo.cc:22:18: error: 'd' was not declared in this scope
else d[i][s] = INF;
^
/in/foo.cc:22:28: error: 'INF' was not declared in this scope
else d[i][s] = INF;
^~~
/in/foo.cc:26:21: error: 'd' was not declared in this scope
d[i][s] = min(d[i][s], dis(node[i], node[h]) + d[i-1][s^(1<<h)^(1<<i)]);
^
/in/foo.cc:26:48: error: 'node' was not declared in this scope
d[i][s] = min(d[i][s], dis(node[i], node[h]) + d[i-1][s^(1<<h)^(1<<i)]);
^~~~
/in/foo.cc:29:19: error: 'd' was not declared in this scope
d[i][s] = d[i-1][s];
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:37:16: error: 'node' was not declared in this scope
cin >> node[i].x >> node[i].y >> node[i].z;
^~~~
/in/foo.cc:39:13: error: 'd' was not declared in this scope
cout << d[n-1][(1<<n)-1] << endl;
^