obstacles.cpp: In function 'bool can_reach(int, int, int, int)':
obstacles.cpp:30:14: error: expected primary-expression before '{' token
30 | if (t == {2, 1, 3}) {
| ^
obstacles.cpp:30:13: error: expected ')' before '{' token
30 | if (t == {2, 1, 3}) {
| ~ ^~
| )
obstacles.cpp:34:2: error: expected '}' at end of input
34 | }
| ^
obstacles.cpp:29:44: note: to match this '{'
29 | bool can_reach(int l, int r, int s, int d) {
| ^
obstacles.cpp:34:2: warning: control reaches end of non-void function [-Wreturn-type]
34 | }
| ^