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_24011852_32301.cpp:4:23: error: 'i' was not declared in this scope
 int dp[maxn][maxn], v[i];
                       ^
0_0_24011852_32301.cpp: In function 'int dfs(int, int)':
0_0_24011852_32301.cpp:11:11: error: 'v' was not declared in this scope
   if( m > v[1]) s = v[1];
           ^
0_0_24011852_32301.cpp:14:15: error: 'v' was not declared in this scope
  else if( m > v[k]) s = max(dfs(m-v[k], k-1) + v[i], dfs(m, k-1));
               ^
0_0_24011852_32301.cpp:14:50: error: 'i' was not declared in this scope
  else if( m > v[k]) s = max(dfs(m-v[k], k-1) + v[i], dfs(m, k-1));
                                                  ^
0_0_24011852_32301.cpp: In function 'int main()':
0_0_24011852_32301.cpp:23:27: error: 'memset' was not declared in this scope
   memset(dp, 0, sizeof(dp));
                           ^
0_0_24011852_32301.cpp:25:15: error: 'v' was not declared in this scope
    scanf("%d",v[i]);
               ^
0_0_24011852_32301.cpp:30:9: error: 'v' was not declared in this scope
    sort(v, v+n);
         ^
0_0_24011852_32301.cpp:30:15: error: 'sort' was not declared in this scope
    sort(v, v+n);
               ^


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-07-05 13:51:46, Gzip enabled