Problem | adjlist |
---|---|
User | fanqie |
Submission Time | 2023-11-16 10:45:35 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
adjlist.cpp:4:14: error: unable to find numeric literal operator ‘operator""S’
4 | bool visited[100000S];
| ^~~~~~~
adjlist.cpp:5:17: error: unable to find numeric literal operator ‘operator""S’
5 | vector<int> adj[100000S];
| ^~~~~~~
adjlist.cpp: In function ‘void dfs(int)’:
adjlist.cpp:8:6: error: ‘visited’ was not declared in this scope
8 | if (visited[x] return;
| ^~~~~~~
adjlist.cpp:9:21: error: expected ‘)’ before ‘;’ token
9 | visited[x] == true;
| ^
| )
adjlist.cpp:8:5: note: to match this ‘(’
8 | if (visited[x] return;
| ^
adjlist.cpp:10:17: error: ‘adj’ was not declared in this scope
10 | for (auto i : adj[x]) dfs(i);
| ^~~
adjlist.cpp: In function ‘int main()’:
adjlist.cpp:17:13: error: expected primary-expression before ‘;’ token
17 | fo