0_0_28250090_7782.cpp: In function 'void solve(int, int)':
0_0_28250090_7782.cpp:31:30: error: invalid operands of types 'void' and 'int' to binary 'operator+'
res^=(solve(to[i],x)+1);
^
0_0_28250090_7782.cpp:33:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
return res;
^
0_0_28250090_7782.cpp: In function 'int main()':
0_0_28250090_7782.cpp:49:25: error: void value not ignored as it ought to be
int sg=solve(1,0);
^
0_0_28250090_7782.cpp:50:12: error: 'res' was not declared in this scope
if(res) puts("Bob");
^
|