Language: C++

#inlude<bits/stdc++.h>
vector<int>par;
vector<int>num;
void init(int N) {
  for (int i = 0; i <= N; i ++) {
    par[i] = -1;
    num[i] = 1;
  }
}
int root(int v) {
  if (par[v] == v) return v;
  return par[v] = root(par[v]);
}
bool same(int a, int b) {
  return root(a) == root(b);
}
void unit(int a, int b) {
  a = root(a);
  b = root(b);
  if (num[a] < num[b]) swap(a, b);
  par[b] = a;
  num[a] += num[b];
}
int group_Size(int v) {
  v = root(v);
  return num[v];
}
int main () {
  int N, M, K;
  cin >> N >> M >> K;
  par.resize(N + 1);
  num.resize(N + 1);
  vector<vector<int>>fri(N + 1);
  vector<vector<int>>blo(N + 1);
  for (int i = 0; i < M; i ++) {
    int a, b;
    cin >> a >> b;
    fri[a].push_back(b);
    fri[b].push_back(a);
    if (!same(a, b)) unit(a, b);
  }
  for (int i = 0; i < K; i ++) {
    int a, b;
    cin >> a >> b;
    blo[a].push_back(b);
    blo[b].push_back(a);
  }
  for (int i = 1; i <= N; i ++) {
    int ans = group_Size(i) - (int)fri[i].size();
    for (int j = 0; j < (int)blo[i].size(); j ++) {
      if (same(i, blo[i][j])) ans --;
    }
    cout << ans << endl;
  }
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlude; did you mean #include?
    1 | #inlude<bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc:2:1: error: 'vector' does not name a type
    2 | vector<int>par;
      | ^~~~~~
a.cc:3:1: error: 'vector' does not name a type
    3 | vector<int>num;
      | ^~~~~~
a.cc: In function 'void init(int)':
a.cc:6:5: error: 'par' was not declared in this scope
    6 |     par[i] = -1;
      |     ^~~
a.cc:7:5: error: 'num' was not declared in this scope; did you mean 'enum'?
    7 |     num[i] = 1;
      |     ^~~
      |     enum
a.cc: In function 'int root(int)':
a.cc:11:7: error: 'par' was not declared in this scope
   11 |   if (par[v] == v) return v;
      |       ^~~
a.cc:12:10: error: 'par' was not declared in this scope
   12 |   return par[v] = root(par[v]);
      |          ^~~
a.cc: In function 'void unit(int, int)':
a.cc:20:7: error: 'num' was not declared in this scope; did you mean 'enum'?
   20 |   if (num[a] < num[b]) swap(a, b);
      |       ^~~
      |       enum
a.cc:20:24: error: 'swap' was not declared in this scope
   20 |   if (num[a] < num[b]) swap(a, b);
      |                        ^~~~
a.cc:21:3: error: 'par' was not declared in this scope
   21 |   par[b] = a;
      |   ^~~
a.cc:22:3: error: 'num' was not declared in this scope; did you mean 'enum'?
   22 |   num[a] += num[b];
      |   ^~~
      |   enum
a.cc: In function 'int group_Size(int)':
a.cc:26:10: error: 'num' was not declared in this scope; did you mean 'enum'?
   26 |   return num[v];
      |          ^~~
      |          enum
a.cc: In function 'int main()':
a.cc:30:3: error: 'cin' was not declared in this scope
   30 |   cin >> N >> M >> K;
      |   ^~~
a.cc:31:3: error: 'par' was not declared in this scope
   31 |   par.resize(N + 1);
      |   ^~~
a.cc:32:3: error: 'num' was not declared in this scope; did you mean 'enum'?
   32 |   num.resize(N + 1);
      |   ^~~
      |   enum
a.cc:33:3: error: 'vector' was not declared in this scope
   33 |   vector<vector<int>>fri(N + 1);
      |   ^~~~~~
a.cc:33:17: error: expected primary-expression before 'int'
   33 |   vector<vector<int>>fri(N + 1);
      |                 ^~~
a.cc:34:17: error: expected primary-expression before 'int'
   34 |   vector<vector<int>>blo(N + 1);
      |                 ^~~
a.cc:38:5: error: 'fri' was not declared in this scope
   38 |     fri[a].push_back(b);
      |     ^~~
a.cc:45:5: error: 'blo' was not declared in this scope
   45 |     blo[a].push_back(b);
      |     ^~~
a.cc:49:36: error: 'fri' was not declared in this scope
   49 |     int ans = group_Size(i) - (int)fri[i].size();
      |                                    ^~~
a.cc:50:30: error: 'blo' was not declared in this scope
   50 |     for (int j = 0; j < (int)blo[i].size(); j ++) {
      |                              ^~~
a.cc:53:5: error: 'cout' was not declared in this scope
   53 |     cout << ans << endl;
      |     ^~~~
a.cc:53:20: error: 'endl' was not declared in this scope
   53 |     cout << ans << endl;
      |                    ^~~~