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_13645748_18352.cpp: In function 'int main()':
0_0_13645748_18352.cpp:14:25: error: 'memset' was not declared in this scope
   memset(c, 0, sizeof(c));
                         ^
0_0_13645748_18352.cpp:15:24: error: 'sizoef' was not declared in this scope
   memset(v, 0, sizoef(v));
                        ^
0_0_13645748_18352.cpp:27:10: error: invalid conversion from 'int (*)(int, int)' to 'int' [-fpermissive]
    dp[j] = max{dp[j], dp[j-v[i]]+c[i]};
          ^
0_0_13645748_18352.cpp:27:15: error: expected ';' before '{' token
    dp[j] = max{dp[j], dp[j-v[i]]+c[i]};
               ^
0_0_13645748_18352.cpp:32:2: error: 'reutnrn' was not declared in this scope
  reutnrn 0;
  ^


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-23 03:50:52, Gzip enabled