Problem treecutting
User 00cqx7
Submission Time 2023-02-18 00:00:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

treecutting.cpp: In function ‘int main()’:
treecutting.cpp:2:2: error: ‘ios’ has not been declared
2 | ios::sync_with_stdio(0);cin.tie(0);
| ^~~
treecutting.cpp:2:26: error: ‘cin’ was not declared in this scope
2 | ios::sync_with_stdio(0);cin.tie(0);
| ^~~
treecutting.cpp:7:2: error: ‘vector’ was not declared in this scope
7 | vector<int> adjlist[n];
| ^~~~~~
treecutting.cpp:7:9: error: expected primary-expression before ‘int’
7 | vector<int> adjlist[n];
| ^~~
treecutting.cpp:12:3: error: ‘adjlist’ was not declared in this scope
12 | adjlist[u-1].push_back(v-1);
| ^~~~~~~
treecutting.cpp:15:2: error: ‘cout’ was not declared in this scope
15 | cout << n-1;
| ^~~~