Problem flip
User maomao90
Submission Time 2023-12-01 14:58:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flip.cpp:44:1: error: expected initializer before ‘void’
44 | void dfs(int u) {
| ^~~~
flip.cpp: In function ‘int main()’:
flip.cpp:72:5: error: ‘vis’ was not declared in this scope; did you mean ‘vii’?
72 | vis[u] = 1;
| ^~~
| vii
flip.cpp:72:9: error: ‘u’ was not declared in this scope
72 | vis[u] = 1;
| ^
flip.cpp:73:5: error: ‘dfs’ was not declared in this scope; did you mean ‘ffs’?
73 | dfs(u);
| ^~~
| ffs