foo.cc: In function ‘int w(int, int, int)’:
foo.cc:9:37: warning: left operand of comma operator has no effect [-Wunused-value]
9 | else if(a<b and b<c)return (a,b,c-1)+w(a,b-1,c-1)-w(a,b-1,c-1);
| ^
foo.cc:9:43: warning: right operand of comma operator has no effect [-Wunused-value]
9 | else if(a<b and b<c)return (a,b,c-1)+w(a,b-1,c-1)-w(a,b-1,c-1);
| ^
foo.cc:11:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
11 | int main()
| ^~
foo.cc:11:9: note: remove parentheses to default-initialize a variable
11 | int main()
| ^~
| --
foo.cc:11:9: note: or replace parentheses with braces to value-initialize a variable
foo.cc:12:1: error: a function-definition is not allowed here before ‘{’ token
12 | {
| ^
foo.cc:14:2: error: expected ‘}’ at end of input
14 | }
| ^
foo.cc:6:1: note: to match this ‘{’
6 | {
| ^