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

Compile Error

flip.cpp: In function ‘void dfs(int)’:
flip.cpp:45:13: error: ‘vis’ was not declared in this scope; did you mean ‘vii’?
45 | if (vis[v]) {
| ^~~
| vii
flip.cpp:48:9: error: ‘vis’ was not declared in this scope; did you mean ‘vii’?
48 | vis[v] = 1;
| ^~~
| vii
flip.cpp: In function ‘int main()’:
flip.cpp:71:5: error: ‘vis’ was not declared in this scope; did you mean ‘vii’?
71 | vis[u] = 1;
| ^~~
| vii
flip.cpp:71:9: error: ‘u’ was not declared in this scope
71 | vis[u] = 1;
| ^