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_16919400_30223.cpp:8:23: error: expected unqualified-id before numeric constant
  int cos[Ni],weg[Ni]; 9 int dp[Ni][Ni];
                       ^
0_0_16919400_30223.cpp: In function 'void dfs(int)':
0_0_16919400_30223.cpp:16:27: error: 'dp' was not declared in this scope
      for(i=temp;i<=m;i++) dp[p][i]=weg[p];
                           ^
0_0_16919400_30223.cpp:26:18: error: 'dp' was not declared in this scope
                  dp[p][j]=max(dp[p][j],dp[p][j-k]+dp[t][k]);
                  ^
0_0_16919400_30223.cpp: In function 'int main()':
0_0_16919400_30223.cpp:36:17: error: 'dp' was not declared in this scope
          memset(dp,0,sizeof(dp));
                 ^


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-25 17:18:49, Gzip enabled