Problem shops
User Xiaoyang
Submission Time 2024-03-19 08:55:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

shops.cpp: In function ‘int dfs(int)’:
shops.cpp:202:6: error: ‘vis’ was not declared in this scope
202 | if(vis[cur]) continue;
| ^~~
shops.cpp:203:3: error: ‘vis’ was not declared in this scope
203 | vis[cur] = 1; cnt++;
| ^~~
shops.cpp: In function ‘void findans(int)’:
shops.cpp:217:6: error: ‘vis’ was not declared in this scope
217 | if(vis[cur]) continue;
| ^~~
shops.cpp:218:3: error: ‘vis’ was not declared in this scope
218 | vis[cur] = 1;
| ^~~