island.cpp:7:38: error: expected initializer before 'vis'
7 | long long num[200010] , sub[200010] vis[200100] , erg[200100];
| ^~~
island.cpp: In function 'long long int dfs(long long int)':
island.cpp:9:5: error: 'vis' was not declared in this scope
9 | vis[x] = 1;
| ^~~
island.cpp:10:29: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
10 | for(long long i = 0 ; i < gr[x].size() ; i++){
| ~~^~~~~~~~~~~~~~
island.cpp:13:13: error: 'sub' was not declared in this scope; did you mean 'fsub'?
13 | sub[x] += dfs(kind);
| ^~~
| fsub
island.cpp:16:12: error: 'sub' was not declared in this scope; did you mean 'fsub'?
16 | return sub[x];
| ^~~
| fsub
island.cpp: In function 'int main()':
island.cpp:24:9: error: 'sub' was not declared in this scope; did you mean 'fsub'?
24 | sub[i + 1] = num[i + 1];
| ^~~
| fsub
island.cpp:33:9: error: 'erg' was not declared in this scope; did you mean 'erf'?
33 | erg[1] = 1;
| ^~~
| erf
island.cpp:35:42: error: 'x' was not declared in this scope
35 | for(long long j = 0 ; j < gr[x].size() ; j++){
| ^
island.cpp:37:50: error: 'sub' was not declared in this scope; did you mean 'fsub'?
37 | if(kind < i && erg[kind] == 1 && sub[i] >= num[kind]){
| ^~~
| fsub
island.cpp:49:9: error: 'vis' was not declared in this scope
49 | vis[i] = 1;
| ^~~
island.cpp:55:37: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
55 | for(long long i = 0 ; i < gr[jet].size() ; i++){
| ~~^~~~~~~~~~~~~~~~