Problem treecutting
User Vinayak01
Submission Time 2026-02-06 08:19:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

treecutting.cpp:2:17: error: ‘stdl’ is not a namespace-name
2 | using namespace stdl;
| ^~~~
treecutting.cpp:9:1: error: ‘vector’ does not name a type
9 | vector<ll> adj[maxn];
| ^~~~~~
treecutting.cpp: In function ‘int main()’:
treecutting.cpp:12:2: error: ‘ios_base’ has not been declared
12 | ios_base::sync_with_stdio(false);
| ^~~~~~~~
treecutting.cpp:13:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
13 | cin.tie(nullptr);
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from treecutting.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
treecutting.cpp:19:3: error: ‘adj’ was not declared in this scope
19 | adj[u].push_back(v);
| ^~~
treecut