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_36244686_12420.cpp:7:14: error: declaration does not declare anything [-fpermissive]
 typedef long long;
              ^
0_0_36244686_12420.cpp:10:1: error: 'll' does not name a type
 ll v[N],w[N];
 ^
0_0_36244686_12420.cpp:11:1: error: 'll' does not name a type
 ll f[N][N];
 ^
0_0_36244686_12420.cpp: In function 'int main()':
0_0_36244686_12420.cpp:20:16: error: 'f' was not declared in this scope
         memset(f,0,sizeof f);
                ^
0_0_36244686_12420.cpp:22:36: error: 'v' was not declared in this scope
         for(int i=1;i<=n;i++) cin>>v[i]>>w[i];
                                    ^
0_0_36244686_12420.cpp:22:42: error: 'w' was not declared in this scope
         for(int i=1;i<=n;i++) cin>>v[i]>>w[i];
                                          ^
0_0_36244686_12420.cpp:31:27: error: 'v' was not declared in this scope
                     if(j>=v[i])
                           ^
0_0_36244686_12420.cpp:32:60: error: 'w' was not declared in this scope
                         f[i][j]=max(f[i][j],f[i-1][j-v[i]]+w[i]);
                                                            ^


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-26 21:41:47, Gzip enabled