parks.cpp:1:1: error: expected unqualified-id before 'for'
1 | for(int i=0;i<n;i++) link[i] = i;
| ^~~
parks.cpp:1:13: error: 'i' does not name a type
1 | for(int i=0;i<n;i++) link[i] = i;
| ^
parks.cpp:1:17: error: 'i' does not name a type
1 | for(int i=0;i<n;i++) link[i] = i;
| ^
parks.cpp:2:9: error: expected unqualified-id before 'for'
2 | for(int i=0;i<n;i++)
| ^~~
parks.cpp:2:21: error: 'i' does not name a type
2 | for(int i=0;i<n;i++)
| ^
parks.cpp:2:25: error: 'i' does not name a type
2 | for(int i=0;i<n;i++)
| ^
parks.cpp:27:9: error: expected unqualified-id before 'for'
27 | for(int i=0;i<n;i++)
| ^~~
parks.cpp:27:21: error: 'i' does not name a type
27 | for(int i=0;i<n;i++)
| ^
parks.cpp:27:25: error: 'i' does not name a type
27 | for(int i=0;i<n;i++)
| ^
parks.cpp:43:9: error: expected unqualified-id before 'if'
43 | if(CC < n-1) return 2;
| ^~
parks.cpp:44:14: error: expected constructor, destructor, or type conversion before '(' token
44 | build(u, v, a, b);
| ^
parks.cpp:45:9: error: expected unqualified-id before 'return'
45 | return 1;
| ^~~~~~