Problem reopening
User Gladius3482
Submission Time 2022-12-28 13:49:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

reopening.cpp:2:1: error: ‘vector’ does not name a type
2 | vector<int>g[100002];
| ^~~~~~
reopening.cpp: In function ‘void dfs(long long int)’:
reopening.cpp:5:13: error: ‘g’ was not declared in this scope
5 | for(auto i:g[v]){
| ^
reopening.cpp:9:3: error: ‘cout’ was not declared in this scope
9 | cout<<v<<' '<<i<<'\n';
| ^~~~
reopening.cpp: In function ‘int main()’:
reopening.cpp:13:2: error: ‘ios’ has not been declared
13 | ios::sync_with_stdio(0);cin.tie(0);
| ^~~
reopening.cpp:13:26: error: ‘cin’ was not declared in this scope
13 | ios::sync_with_stdio(0);cin.tie(0);
| ^~~
reopening.cpp:15:2: error: ‘memset’ was not declared in this scope
15 | memset(depth,-1,sizeof depth);
| ^~~~~~
reopening.cpp:1:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cs