Problem splithunny
User Yannwen09
Submission Time 2023-11-10 13:42:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

splithunny.cpp:4:23: error: ‘N’ was not declared in this scope
4 | vector <int> adjlist[N+5]; //at top of code
| ^
splithunny.cpp:5:14: error: ‘N’ was not declared in this scope
5 | bool visited[N+5];
| ^
splithunny.cpp: In function ‘void dfs(int)’:
splithunny.cpp:8:5: error: ‘visited’ was not declared in this scope
8 | if (visited[x]) return;
| ^~~~~~~
splithunny.cpp:9:1: error: ‘visited’ was not declared in this scope
9 | visited[x] = true;
| ^~~~~~~
splithunny.cpp:10:14: error: ‘adjlist’ was not declared in this scope
10 | for (auto i: adjlist[x]) {
| ^~~~~~~
splithunny.cpp: At global scope:
splithunny.cpp:16:5: error: expected unqualified-id before ‘return’
16 | return 0;
| ^~~~~~
splithunny.cpp:17:1: error: expected declaration before ‘}’ token
17 | }
| ^