Problem treecutting
User WANCH5789W
Submission Time 2026-07-12 15:44:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

treecutting.cpp:7:18: error: ‘cities’ was not declared in this scope
7 | bool connection (cities[i].first, cities[i].second){
| ^~~~~~
treecutting.cpp:7:25: error: ‘i’ was not declared in this scope
7 | bool connection (cities[i].first, cities[i].second){
| ^
treecutting.cpp:7:35: error: ‘cities’ was not declared in this scope
7 | bool connection (cities[i].first, cities[i].second){
| ^~~~~~
treecutting.cpp:7:42: error: ‘i’ was not declared in this scope
7 | bool connection (cities[i].first, cities[i].second){
| ^
treecutting.cpp:7:51: error: expression list treated as compound expression in initializer [-fpermissive]
7 | bool connection (cities[i].first, cities[i].second){
| ^
treecutting.cpp: In function ‘int main()’:
treecu