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_20056396_16628.cpp: In function 'void dfs(int, int, int)':
0_0_20056396_16628.cpp:11:16: error: return-statement with a value, in function returning 'void' [-fpermissive]
         return 1;
                ^
0_0_20056396_16628.cpp:19:41: error: could not convert 'dfs(x, (i + -1), (a[i] + c))' from 'void' to 'bool'
                     if (dfs(x,i-1,c+a[i]))
                                         ^
0_0_20056396_16628.cpp:20:32: error: return-statement with a value, in function returning 'void' [-fpermissive]
                         return 1;
                                ^
0_0_20056396_16628.cpp:24:38: error: could not convert 'dfs((x + 1), (m + -1), 0)' from 'void' to 'bool'
                     if (dfs(x+1,m-1,0))
                                      ^
0_0_20056396_16628.cpp:25:32: error: return-statement with a value, in function returning 'void' [-fpermissive]
                         return 1;
                                ^
0_0_20056396_16628.cpp:30:16: error: return-statement with a value, in function returning 'void' [-fpermissive]
         return 0;
                ^
0_0_20056396_16628.cpp: In function 'int main()':
0_0_20056396_16628.cpp:53:28: error: could not convert 'dfs(0, (m + -1), 0)' from 'void' to 'bool'
             if (dfs(0,m-1,0)) printf("yes\n");
                            ^


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-19 12:44:05, Gzip enabled