mushrooms.cpp: In function 'int count_mushrooms(int)':
mushrooms.cpp:10:21: error: expected identifier before numeric constant
10 | if(use_machine([0,1])){
| ^
mushrooms.cpp:10:22: error: expected ']' before ',' token
10 | if(use_machine([0,1])){
| ^
| ]
mushrooms.cpp: In lambda function:
mushrooms.cpp:10:22: error: expected '{' before ',' token
mushrooms.cpp: In function 'int count_mushrooms(int)':
mushrooms.cpp:10:24: error: expected ')' before ']' token
10 | if(use_machine([0,1])){
| ~ ^
| )
mushrooms.cpp:10:24: error: expected ')' before ']' token
10 | if(use_machine([0,1])){
| ~ ^
| )
mushrooms.cpp:10:24: error: expected primary-expression before ']' token
mushrooms.cpp:29:35: error: expected ',' before '[' token
29 | int tmp=use_machine([w[0],s,w[1],s+1]);
| ^
| ,
mushrooms.cpp:29:35: error: expected identifier before '[' token
mushrooms.cpp:29:38: error: expected ']' before ',' token
29 | int tmp=use_machine([w[0],s,w[1],s+1]);
| ^
| ]
mushrooms.cpp: In lambda function:
mushrooms.cpp:29:38: error: expected '{' before ',' token
mushrooms.cpp: In function 'int count_mushrooms(int)':
mushrooms.cpp:29:49: error: expected ')' before ']' token
29 | int tmp=use_machine([w[0],s,w[1],s+1]);
| ~ ^
| )
mushrooms.cpp:42:35: error: expected ',' before '[' token
42 | int tmp=use_machine([b[0],s,b[1],s+1]);
| ^
| ,
mushrooms.cpp:42:35: error: expected identifier before '[' token
mushrooms.cpp:42:38: error: expected ']' before ',' token
42 | int tmp=use_machine([b[0],s,b[1],s+1]);
| ^
| ]
mushrooms.cpp: In lambda function:
mushrooms.cpp:42:38: error: expected '{' before ',' token
mushrooms.cpp: In function 'int count_mushrooms(int)':
mushrooms.cpp:42:49: error: expected ')' before ']' token
42 | int tmp=use_machine([b[0],s,b[1],s+1]);
| ~ ^
| )
mushrooms.cpp:65:19: error: 'use_machine' was not declared in this scope
65 | int t=use_machine(tmp);
| ^~~~~~~~~~~
mushrooms.cpp:74:19: error: 'use_machine' was not declared in this scope
74 | int t=use_machine(tmp);
| ^~~~~~~~~~~
mushrooms.cpp:87:15: error: 'use_machine' was not declared in this scope
87 | int t=use_machine(tmp);
| ^~~~~~~~~~~
mushrooms.cpp:96:15: error: 'use_machine' was not declared in this scope
96 | int t=use_machine(tmp);
| ^~~~~~~~~~~