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_26823914_12381.cpp:1:3: error: stray '#' in program
 ! #include<bits/stdc++.h>
   ^
0_0_26823914_12381.cpp:1:1: error: expected unqualified-id before '!' token
 ! #include<bits/stdc++.h>
 ^
0_0_26823914_12381.cpp:9:2: error: 'vector' does not name a type
  vector<xjy > s;
  ^
0_0_26823914_12381.cpp: In function 'int main()':
0_0_26823914_12381.cpp:14:18: error: 'scanf' was not declared in this scope
   scanf("%lld",&t);
                  ^
0_0_26823914_12381.cpp:19:4: error: 's' was not declared in this scope
    s.clear();
    ^
0_0_26823914_12381.cpp:20:26: error: 'memset' was not declared in this scope
    memset(dp,0,sizeof(dp));
                          ^
0_0_26823914_12381.cpp:27:22: error: 'max' was not declared in this scope
     ans=max(ans,mid.v);
                      ^
0_0_26823914_12381.cpp:37:64: error: 'max' was not declared in this scope
        dp[i+1][2*m][k]=max(dp[i+1][2*m][k],dp[i][j][k-1]+s[i].v);
                                                                ^
0_0_26823914_12381.cpp:42:76: error: 'max' was not declared in this scope
        dp[i+1][j+2*s[i].w][k]=max(dp[i+1][j+2*s[i].w][k],dp[i][j][k]+s[i].v);
                                                                            ^
0_0_26823914_12381.cpp:48:39: error: 'printf' was not declared in this scope
    printf("Case #%lld: %lld\n",cnt,ans);
                                       ^


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-09-28 13:25:53, Gzip enabled