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");
^
|