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

Compile Error

treecutting.cpp:8:31: error: ‘N’ was not declared in this scope
8 | vector<pair<int, int>> cities(N);
| ^
treecutting.cpp:9:1: error: expected unqualified-id before ‘for’
9 | for (int i = 0; i < N; i++){
| ^~~
treecutting.cpp:9:17: error: ‘i’ does not name a type
9 | for (int i = 0; i < N; i++){
| ^
treecutting.cpp:9:24: error: ‘i’ does not name a type
9 | for (int i = 0; i < N; i++){
| ^