F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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];
            ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-23 08:58:27, Gzip enabled