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_18380720_11902.cpp:4:7: error: 'll' does not name a type
 const ll maxx = 100;
       ^
0_0_18380720_11902.cpp:6:7: error: 'maxx' was not declared in this scope
 ll dp[maxx][maxx];
       ^
0_0_18380720_11902.cpp:6:13: error: 'maxx' was not declared in this scope
 ll dp[maxx][maxx];
             ^
0_0_18380720_11902.cpp:8:6: error: 'maxx' was not declared in this scope
 ll w[maxx],v[maxx];
      ^
0_0_18380720_11902.cpp:8:14: error: 'maxx' was not declared in this scope
 ll w[maxx],v[maxx];
              ^
0_0_18380720_11902.cpp: In function 'll rec(ll, ll)':
0_0_18380720_11902.cpp:11:5: error: 'dp' was not declared in this scope
  if(dp[num][wmaxx]>0){
     ^
0_0_18380720_11902.cpp:18:10: error: 'w' was not declared in this scope
  else if(w[num]>wmaxx){
          ^
0_0_18380720_11902.cpp:22:54: error: 'v' was not declared in this scope
   res=max(rec(num+1,wmaxx), (rec(num+1,wmaxx-w[num])+v[num]));
                                                      ^
0_0_18380720_11902.cpp:24:9: error: 'dp' was not declared in this scope
  return dp[num][wmaxx] = res;
         ^
0_0_18380720_11902.cpp: In function 'int main(int, const char**)':
0_0_18380720_11902.cpp:32:18: error: 'w' was not declared in this scope
    scanf("%d%d",&w[i],&v[i]);
                  ^
0_0_18380720_11902.cpp:32:24: error: 'v' was not declared in this scope
    scanf("%d%d",&w[i],&v[i]);
                        ^
0_0_18380720_11902.cpp:34:25: error: 'prllf' was not declared in this scope
   prllf("%d\n",rec(0,wm));
                         ^


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 11:57:28, Gzip enabled