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_21925050_30780.cpp:5:1: error: 'll' does not name a type
 ll pre[100005]; 
 ^
0_0_21925050_30780.cpp: In function 'void work(int*, int, int)':
0_0_21925050_30780.cpp:13:3: error: 'll' was not declared in this scope
   ll sum = pre[dp[i] - 1] - (i ? pre[i - 1] : 0); 
   ^
0_0_21925050_30780.cpp:14:23: error: 'sum' was not declared in this scope
   while (dp[i] < n && sum + arr[dp[i]] <= w)
                       ^
0_0_21925050_30780.cpp: In function 'int main()':
0_0_21925050_30780.cpp:34:4: error: 'pre' was not declared in this scope
    pre[i] = (i ? pre[i - 1] : 0) + arr[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-30 10:34:33, Gzip enabled