catdog.cpp:1:2: error: expected unqualified-id before 'return'
1 | return min(dp[0][0], dp[0][1]);
| ^~~~~~
catdog.cpp:2:1: error: expected declaration before '}' token
2 | }
| ^
catdog.cpp: In function 'int neighbor(int)':
catdog.cpp:6:2: error: 'oc' was not declared in this scope
6 | oc[v][0] = oc[v][1] = false;
| ^~
catdog.cpp:7:2: error: 'dfs' was not declared in this scope
7 | dfs(0, -1);
| ^~~
catdog.cpp:8:13: error: 'dp' was not declared in this scope
8 | return min(dp[0][0], dp[0][1]);
| ^~
catdog.cpp:8:9: error: 'min' was not declared in this scope
8 | return min(dp[0][0], dp[0][1]);
| ^~~