Run id: 117146
Main.cc: In function 'int out(int, int)':
Main.cc:8:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(m=0){
^
Main.cc:9:20: error: lvalue required as left operand of assignment
return out(m,n)=n+1;
^
Main.cc:11:10: warning: left operand of comma operator has no effect [-Wunused-value]
else if(m>0,n=0){
^
Main.cc:12:20: error: lvalue required as left operand of assignment
return out(m,n)=out(m-1,1)
^
Main.cc:13:1: error: expected ';' before '}' token
}
^
Main.cc:14:13: warning: left operand of comma operator has no effect [-Wunused-value]
else if(m,n>0){
^
Main.cc:15:20: error: lvalue required as left operand of assignment
return out(m,n)=out(m-1,out(m, n-1))
^
Main.cc:16:1: error: expected ';' before '}' token
}
^