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_18155332_6865.cpp: In function 'LL dfs(LL, LL, int)':
0_0_18155332_6865.cpp:25:44: error: too few arguments to function 'LL dfs(LL, LL, int)'
             LL ans=min(max(dfs(p-sum[pos],0),q,1)+pos+flag,dfs(p-sum[pos-1],q,1)+pos-1+flag);
                                            ^
0_0_18155332_6865.cpp:18:4: note: declared here
 LL dfs(LL p,LL q,int flag)
    ^
0_0_18155332_6865.cpp: At global scope:
0_0_18155332_6865.cpp:32:1: error: expected declaration before '}' token
 }
 ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-17 19:58:04, Gzip enabled