0_0_32866962_3343.cpp: In function 'int pin(int, int)':
0_0_32866962_3343.cpp:3:8: error: 'dp' was not declared in this scope
if(dp[s][v]!=inf)//若此状态之前已经得出,则直接返回
^
0_0_32866962_3343.cpp:3:18: error: 'inf' was not declared in this scope
if(dp[s][v]!=inf)//若此状态之前已经得出,则直接返回
^
0_0_32866962_3343.cpp:5:15: error: 'st' was not declared in this scope
if(s==(1<<st+1)-1)//若所有点已经全部访问过,则根据题目要求(通路、回路)进行下一步返回,这道题是回路
^
0_0_32866962_3343.cpp:6:16: error: 'dp' was not declared in this scope
return dp[s][v]=val[v][0];
^
0_0_32866962_3343.cpp:6:25: error: 'val' was not declared in this scope
return dp[s][v]=val[v][0];
^
0_0_32866962_3343.cpp:7:20: error: 'st' was not declared in this scope
for(int u=0;u<=st;u++)
^
0_0_32866962_3343.cpp:11:13: error: 'dp' was not declared in this scope
dp[s][v]=min(dp[s][v],val[u][v]+pin(s|(1<<u),u));//把问题推给从s|1<<u点走再加上u和v的距离
^
0_0_32866962_3343.cpp:11:35: error: 'val' was not declared in this scope
dp[s][v]=min(dp[s][v],val[u][v]+pin(s|(1<<u),u));//把问题推给从s|1<<u点走再加上u和v的距离
^
0_0_32866962_3343.cpp:11:60: error: 'min' was not declared in this scope
dp[s][v]=min(dp[s][v],val[u][v]+pin(s|(1<<u),u));//把问题推给从s|1<<u点走再加上u和v的距离
^
0_0_32866962_3343.cpp:13:12: error: 'dp' was not declared in this scope
return dp[s][v];
^
|