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_32427792_27283.cpp: In function 'int main()':
0_0_32427792_27283.cpp:12:7: error: expected ';' before 'a'
  node a[M];
       ^
0_0_32427792_27283.cpp:18:33: error: 'a' was not declared in this scope
   for(i=1;i<=n;i++) scanf("%d",&a[i].v);
                                 ^
0_0_32427792_27283.cpp:19:33: error: 'a' was not declared in this scope
   for(i=1;i<=n;i++) scanf("%d",&a[i].w);
                                 ^
0_0_32427792_27283.cpp:22:10: error: 'a' was not declared in this scope
     if(j-a[i].w>=0 && dp[i-1][j]<dp[i-1][j-a[i].w]+a[i].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-06-30 14:01:06, Gzip enabled