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_25085995_14436.cpp: In function 'void dfs(int, int, int)':
0_0_25085995_14436.cpp:11:1: error: expected primary-expression before '?' token
 ??? cnt=max(cnt,weight);
 ^
0_0_25085995_14436.cpp:11:2: error: expected primary-expression before '?' token
 ??? cnt=max(cnt,weight);
  ^
0_0_25085995_14436.cpp:11:3: error: expected primary-expression before '?' token
 ??? cnt=max(cnt,weight);
   ^
0_0_25085995_14436.cpp:11:24: error: expected ':' before ';' token
 ??? cnt=max(cnt,weight);
                        ^
0_0_25085995_14436.cpp:11:24: error: expected primary-expression before ';' token
0_0_25085995_14436.cpp:11:24: error: expected ':' before ';' token
0_0_25085995_14436.cpp:11:24: error: expected primary-expression before ';' token
0_0_25085995_14436.cpp:11:24: error: expected ':' before ';' token
0_0_25085995_14436.cpp:11:24: error: expected primary-expression before ';' token
0_0_25085995_14436.cpp:12:1: error: expected primary-expression before '?' token
 ??? if(id==k) return ;
 ^
0_0_25085995_14436.cpp:12:2: error: expected primary-expression before '?' token
 ??? if(id==k) return ;
  ^
0_0_25085995_14436.cpp:12:3: error: expected primary-expression before '?' token
 ??? if(id==k) return ;
   ^
0_0_25085995_14436.cpp:12:5: error: expected primary-expression before 'if'
 ??? if(id==k) return ;
     ^
0_0_25085995_14436.cpp:12:5: error: expected ':' before 'if'
0_0_25085995_14436.cpp:12:5: error: expected primary-expression before 'if'
0_0_25085995_14436.cpp:12:5: error: expected ':' before 'if'
0_0_25085995_14436.cpp:12:5: error: expected primary-expression before 'if'
0_0_25085995_14436.cpp:12:5: error: expected ':' before 'if'
0_0_25085995_14436.cpp:12:5: error: expected primary-expression before 'if'
0_0_25085995_14436.cpp:13:1: error: expected primary-expression before '?' token
 ??? dfs(id+1,num,weight);
 ^
0_0_25085995_14436.cpp:13:2: error: expected primary-expression before '?' token
 ??? dfs(id+1,num,weight);
  ^
0_0_25085995_14436.cpp:13:3: error: expected primary-expression before '?' token
 ??? dfs(id+1,num,weight);
   ^
0_0_25085995_14436.cpp:13:25: error: expected ':' before ';' token
 ??? dfs(id+1,num,weight);
                         ^
0_0_25085995_14436.cpp:13:25: error: expected primary-expression before ';' token
0_0_25085995_14436.cpp:13:25: error: expected ':' before ';' token
0_0_25085995_14436.cpp:13:25: error: expected primary-expression before ';' token
0_0_25085995_14436.cpp:13:25: error: expected ':' before ';' token
0_0_25085995_14436.cpp:13:25: error: expected primary-expression before ';' token
0_0_25085995_14436.cpp:14:1: error: expected primary-expression before '?' token
 ??? if(weight+wi[id]<=m&&num+1<=n) dfs(id+1,num+1,weight+wi[id]);
 ^
0_0_25085995_14436.cpp:14:2: error: expected primary-expression before '?' token
 ??? if(weight+wi[id]<=m&&num+1<=n) dfs(id+1,num+1,weight+wi[id]);
  ^
0_0_25085995_14436.cpp:14:3: error: expected primary-expression before '?' token
 ??? if(weight+wi[id]<=m&&num+1<=n) dfs(id+1,num+1,weight+wi[id]);
   ^
0_0_25085995_14436.cpp:14:5: error: expected primary-expression before 'if'
 ??? if(weight+wi[id]<=m&&num+1<=n) dfs(id+1,num+1,weight+wi[id]);
     ^
0_0_25085995_14436.cpp:14:5: error: expected ':' before 'if'
0_0_25085995_14436.cpp:14:5: error: expected primary-expression before 'if'
0_0_25085995_14436.cpp:14:5: error: expected ':' before 'if'
0_0_25085995_14436.cpp:14:5: error: expected primary-expression before 'if'
0_0_25085995_14436.cpp:14:5: error: expected ':' before 'if'
0_0_25085995_14436.cpp:14:5: error: expected primary-expression before 'if'
0_0_25085995_14436.cpp: In function 'int main()':
0_0_25085995_14436.cpp:18:1: error: expected primary-expression before '?' token
 ??? while(scanf("%d%d",&n,&m)==2)
 ^
0_0_25085995_14436.cpp:18:2: error: expected primary-expression before '?' token
 ??? while(scanf("%d%d",&n,&m)==2)
  ^
0_0_25085995_14436.cpp:18:3: error: expected primary-expression before '?' token
 ??? while(scanf("%d%d",&n,&m)==2)
   ^
0_0_25085995_14436.cpp:18:5: error: expected primary-expression before 'while'
 ??? while(scanf("%d%d",&n,&m)==2)
     ^
0_0_25085995_14436.cpp:18:5: error: expected ':' before 'while'
0_0_25085995_14436.cpp:18:5: error: expected primary-expression before 'while'
0_0_25085995_14436.cpp:18:5: error: expected ':' before 'while'
0_0_25085995_14436.cpp:18:5: error: expected primary-expression before 'while'
0_0_25085995_14436.cpp:18:5: error: expected ':' before 'while'
0_0_25085995_14436.cpp:18:5: error: expected primary-expression before 'while'
0_0_25085995_14436.cpp:39:1: error: expected primary-expression before '?' token
 ??? return 0;
 ^
0_0_25085995_14436.cpp:39:2: error: expected primary-expression before '?' token
 ??? return 0;
  ^
0_0_25085995_14436.cpp:39:3: error: expected primary-expression before '?' token
 ??? return 0;
   ^
0_0_25085995_14436.cpp:39:5: error: expected primary-expression before 'return'
 ??? return 0;
     ^
0_0_25085995_14436.cpp:39:5: error: expected ':' before 'return'
0_0_25085995_14436.cpp:39:5: error: expected primary-expression before 'return'
0_0_25085995_14436.cpp:39:5: error: expected ':' before 'return'
0_0_25085995_14436.cpp:39:5: error: expected primary-expression before 'return'
0_0_25085995_14436.cpp:39:5: error: expected ':' before 'return'
0_0_25085995_14436.cpp:39:5: error: expected primary-expression before 'return'


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-12-05 00:14:56, Gzip enabled