0_0_32863473_14617.cpp:6:1: error: 'doubled' does not name a type
doubled[1<<22];
^
0_0_32863473_14617.cpp:7:1: error: 'boolvis' does not name a type
boolvis[1<<22];
^
0_0_32863473_14617.cpp:17:13: error: 'inti' was not declared in this scope
double dist(inti,int j)//返回从起点到i,j的最短距离
^
0_0_32863473_14617.cpp:17:18: error: expected primary-expression before 'int'
double dist(inti,int j)//返回从起点到i,j的最短距离
^
0_0_32863473_14617.cpp:17:23: error: expression list treated as compound expression in initializer [-fpermissive]
double dist(inti,int j)//返回从起点到i,j的最短距离
^
0_0_32863473_14617.cpp:18:1: error: expected ',' or ';' before '{' token
{
^
0_0_32863473_14617.cpp: In function 'int main()':
0_0_32863473_14617.cpp:40:20: error: 'vis' was not declared in this scope
memset(vis,0,sizeof(vis));
^
0_0_32863473_14617.cpp:42:13: error: 'd' was not declared in this scope
d[0]=0.0;//初始为0
^
0_0_32863473_14617.cpp:50:62: error: 'dist' cannot be used as a function
d[S|(1<<i)|(1<<j)] = d[S]+dist(i,j);
^
0_0_32863473_14617.cpp:52:87: error: 'dist' cannot be used as a function
d[S|(1<<i)|(1<<j)] = min( d[S|(1<<i)|(1<<j)] ,d[S]+dist(i,j) );
^
|