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_30799113_23355.cpp:3:1: error: stray '\262' in program
 ²»½âÊÍÁËint cnt;void dfs(int id,int num,int weight){
 ^
0_0_30799113_23355.cpp:3:1: error: stray '\273' in program
0_0_30799113_23355.cpp:3:1: error: stray '\275' in program
0_0_30799113_23355.cpp:3:1: error: stray '\342' in program
0_0_30799113_23355.cpp:3:1: error: stray '\312' in program
0_0_30799113_23355.cpp:3:1: error: stray '\315' in program
0_0_30799113_23355.cpp:3:1: error: stray '\301' in program
0_0_30799113_23355.cpp:3:1: error: stray '\313' in program
0_0_30799113_23355.cpp: In function 'void dfs(int, int, int)':
0_0_30799113_23355.cpp:5:19: error: 'max' was not declared in this scope
 cnt=max(cnt,weight);
                   ^
0_0_30799113_23355.cpp:5:19: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_30799113_23355.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:261:5: note:   'std::max'
     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
     ^
0_0_30799113_23355.cpp:7:8: error: 'k' was not declared in this scope
 if(id==k) return ;
        ^
0_0_30799113_23355.cpp:11:11: error: 'wi' was not declared in this scope
 if(weight+wi[id]<=m&&num+1<=n) dfs(id+1,num+1,weight+wi[id]);}int main(){
           ^
0_0_30799113_23355.cpp:11:19: error: 'm' was not declared in this scope
 if(weight+wi[id]<=m&&num+1<=n) dfs(id+1,num+1,weight+wi[id]);}int main(){
                   ^
0_0_30799113_23355.cpp:11:29: error: 'n' was not declared in this scope
 if(weight+wi[id]<=m&&num+1<=n) dfs(id+1,num+1,weight+wi[id]);}int main(){
                             ^
0_0_30799113_23355.cpp: In function 'int main()':
0_0_30799113_23355.cpp:13:21: error: 'n' was not declared in this scope
 while(scanf("%d%d",&n,&m)==2)
                     ^
0_0_30799113_23355.cpp:13:24: error: 'm' was not declared in this scope
 while(scanf("%d%d",&n,&m)==2)
                        ^
0_0_30799113_23355.cpp:17:13: error: 'k' was not declared in this scope
 scanf("%d",&k);
             ^
0_0_30799113_23355.cpp:25:13: error: 'wi' was not declared in this scope
 scanf("%d",&wi[i]);
             ^
0_0_30799113_23355.cpp:29:6: error: 'wi' was not declared in this scope
 sort(wi,wi+k);
      ^
0_0_30799113_23355.cpp:29:13: error: 'sort' was not declared in this scope
 sort(wi,wi+k);
             ^


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-29 20:06:51, Gzip enabled