Language: C++

#include<iostream>
#include<string>
#include<queue>
using namespace std;
 
int main(void) {
  int N,M,K;
  cin >> N >> M >> K;
  int A[M], B[M], C[K], D[K];
  
  for (int i = 1; i <= N; i++){
    candidate_count = 0;
    for (int friend = 1; friend <= N; friend++){
      # 同一人物でない
      if (i == friend) continue;
      # ブロック関係にない
      for (int k = 0; k < K; k++){
        if ((C[k] == i && D[k] == friend) || (C[k] == friend && D[k] == i)) continue;
      }
      # 友達関係にない
      for (int k = 0; k < M; k++){
        if ((A[k] == i && B[k] == friend) || (A[k] == friend && B[k] == i)) continue;
      }
      
      # 友達の友達か？
      queue<int> q;
      q.push(i); // iさんの候補を探す
      found = false;
      while (!q.empty() || found){
        int u = q.front(); q.pop();
        if (u == friend) {found = true; break;}
      	for (int m = 0; m < M; m++){
        	if (A[m] == u) q.push(B[m]);
      		if (B[m] == u) q.push(A[m]);
      	}
      }
      if (found) candidate_count++;
    }
   	cout << candidate_count << " ";
  }
  
  return 0;
}

Compiler output:
a.cc:14:9: error: invalid preprocessing directive #\U0000540c\U00004e00\U00004eba\U00007269\U00003067\U0000306a\U00003044
   14 |       # 同一人物でない
      |         ^~~~~~~~~~~~~~
a.cc:16:9: error: invalid preprocessing directive #\U000030d6\U000030ed\U000030c3\U000030af\U000095a2\U00004fc2\U0000306b\U0000306a\U00003044
   16 |       # ブロック関係にない
      |         ^~~~~~~~~~~~~~~~~~
a.cc:20:9: error: invalid preprocessing directive #\U000053cb\U00009054\U000095a2\U00004fc2\U0000306b\U0000306a\U00003044
   20 |       # 友達関係にない
      |         ^~~~~~~~~~~~~~
a.cc:25:9: error: invalid preprocessing directive #\U000053cb\U00009054\U0000306e\U000053cb\U00009054\U0000304b\U0000ff1f
   25 |       # 友達の友達か？
      |         ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:12:5: error: 'candidate_count' was not declared in this scope
   12 |     candidate_count = 0;
      |     ^~~~~~~~~~~~~~~
a.cc:13:14: error: 'friend' used outside of class
   13 |     for (int friend = 1; friend <= N; friend++){
      |              ^~~~~~
      |              ------
a.cc:13:21: error: expected unqualified-id before '=' token
   13 |     for (int friend = 1; friend <= N; friend++){
      |                     ^
a.cc:13:13: error: expected ';' before '=' token
   13 |     for (int friend = 1; friend <= N; friend++){
      |             ^       ~
      |             ;
a.cc:13:21: error: expected primary-expression before '=' token
   13 |     for (int friend = 1; friend <= N; friend++){
      |                     ^
a.cc:13:26: error: expected primary-expression before 'friend'
   13 |     for (int friend = 1; friend <= N; friend++){
      |                          ^~~~~~
a.cc:13:25: error: expected ')' before 'friend'
   13 |     for (int friend = 1; friend <= N; friend++){
      |         ~               ^~~~~~~
      |                         )
a.cc:13:26: error: 'friend' used outside of class
   13 |     for (int friend = 1; friend <= N; friend++){
      |                          ^~~~~~
      |                          ------
a.cc:13:33: error: expected unqualified-id before '<=' token
   13 |     for (int friend = 1; friend <= N; friend++){
      |                                 ^~
a.cc:13:39: error: 'friend' used outside of class
   13 |     for (int friend = 1; friend <= N; friend++){
      |                                       ^~~~~~
      |                                       ------
a.cc:13:45: error: expected unqualified-id before '++' token
   13 |     for (int friend = 1; friend <= N; friend++){
      |                                             ^~