Problem | universe |
---|---|
User | DihydrogenMonoxide |
Submission Time | 2023-02-15 14:11:48 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
universe.cpp:8:5: error: ‘vector’ does not name a type
8 | vector<int> adjlist[100001];
| ^~~~~~
universe.cpp: In function ‘void dfs(long long int, long long int)’:
universe.cpp:17:9: error: ‘adjlist’ was not declared in this scope
17 | if (adjlist[u].size() == 1) restaurant[u] = true;
| ^~~~~~~
universe.cpp:20:19: error: ‘adjlist’ was not declared in this scope
20 | for (auto v : adjlist[u]){
| ^~~~~~~
universe.cpp: In function ‘int main()’:
universe.cpp:47:5: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
47 | cin >> n >> k;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from universe.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
|