Language: C++

#include <map>
#include <cmath>
#include <queue>
#include <stack>
#include <vector>
#include <cstdio>
#include <string>
#include <cstring>
#include <sstream>
#include <algorithm>
 
using namespace std;
 
int ro[200005], ra[200005], n, k, l;
 
int Find(int *r, int x) {
    return r[x]==x ? x : r[x]=Find(r, r[x]);
}
 
void init() {
    for(int i=1;i<=n;i++) {
    ┊   ra[i]=ro[i]=i;
    }   
}
 
vector <int> ve[200005];
map <int, int> ma; 
int ans[200005];
 
int main () {
    int u, v;
    scanf("%d%d%d", &n, &k, &l);
    init();
    for(int i=1;i<=k;i++) {
    ┊   scanf("%d%d", &u, &v);
    ┊   u=Find(ro, u), v=Find(ro, v); 
    ┊   if(u!=v) {
    ┊   ┊   ro[u]=v;
    ┊   }
    }
 
    for(int i=1;i<=l;i++) {
    ┊   scanf("%d%d", &u, &v);
    ┊   u=Find(ra, u), v=Find(ra, v);
    ┊   if(u!=v) {
    ┊   ┊   ra[u]=v;
    ┊   }
    }
 
    for(int i=1;i<=n;i++) {
    ┊   ve[Find(ro, i)].push_back(i);
    }
 
    for(int i=1;i<=n;i++) {
    ┊   ma.clear();
    ┊   for(int j=0;j<(int)ve[i].size();j++) {
    ┊   ┊   ma[Find(ra, ve[i][j])]++;
    ┊   }
 
    ┊   for(int j=0;j<(int)ve[i].size();j++) {
    ┊   ┊   ans[ve[i][j]]+=ma[Find(ra, ve[i][j])];
    ┊   }
    }
 
    for(int i=1;i<=n;i++) {
    ┊   printf("%d%c", ans[i], i==n ? '\n' : ' ');
    }
    return 0;
}  

Compiler output:
a.cc:22:5: error: extended character ┊ is not valid in an identifier
   22 |     ┊   ra[i]=ro[i]=i;
      |     ^
a.cc:35:5: error: extended character ┊ is not valid in an identifier
   35 |     ┊   scanf("%d%d", &u, &v);
      |     ^
a.cc:36:5: error: extended character ┊ is not valid in an identifier
   36 |     ┊   u=Find(ro, u), v=Find(ro, v);
      |     ^
a.cc:37:5: error: extended character ┊ is not valid in an identifier
   37 |     ┊   if(u!=v) {
      |     ^
a.cc:38:5: error: extended character ┊ is not valid in an identifier
   38 |     ┊   ┊   ro[u]=v;
      |     ^
a.cc:38:9: error: extended character ┊ is not valid in an identifier
   38 |     ┊   ┊   ro[u]=v;
      |         ^
a.cc:39:5: error: extended character ┊ is not valid in an identifier
   39 |     ┊   }
      |     ^
a.cc:43:5: error: extended character ┊ is not valid in an identifier
   43 |     ┊   scanf("%d%d", &u, &v);
      |     ^
a.cc:44:5: error: extended character ┊ is not valid in an identifier
   44 |     ┊   u=Find(ra, u), v=Find(ra, v);
      |     ^
a.cc:45:5: error: extended character ┊ is not valid in an identifier
   45 |     ┊   if(u!=v) {
      |     ^
a.cc:46:5: error: extended character ┊ is not valid in an identifier
   46 |     ┊   ┊   ra[u]=v;
      |     ^
a.cc:46:9: error: extended character ┊ is not valid in an identifier
   46 |     ┊   ┊   ra[u]=v;
      |         ^
a.cc:47:5: error: extended character ┊ is not valid in an identifier
   47 |     ┊   }
      |     ^
a.cc:51:5: error: extended character ┊ is not valid in an identifier
   51 |     ┊   ve[Find(ro, i)].push_back(i);
      |     ^
a.cc:55:5: error: extended character ┊ is not valid in an identifier
   55 |     ┊   ma.clear();
      |     ^
a.cc:56:5: error: extended character ┊ is not valid in an identifier
   56 |     ┊   for(int j=0;j<(int)ve[i].size();j++) {
      |     ^
a.cc:57:5: error: extended character ┊ is not valid in an identifier
   57 |     ┊   ┊   ma[Find(ra, ve[i][j])]++;
      |     ^
a.cc:57:9: error: extended character ┊ is not valid in an identifier
   57 |     ┊   ┊   ma[Find(ra, ve[i][j])]++;
      |         ^
a.cc:58:5: error: extended character ┊ is not valid in an identifier
   58 |     ┊   }
      |     ^
a.cc:60:5: error: extended character ┊ is not valid in an identifier
   60 |     ┊   for(int j=0;j<(int)ve[i].size();j++) {
      |     ^
a.cc:61:5: error: extended character ┊ is not valid in an identifier
   61 |     ┊   ┊   ans[ve[i][j]]+=ma[Find(ra, ve[i][j])];
      |     ^
a.cc:61:9: error: extended character ┊ is not valid in an identifier
   61 |     ┊   ┊   ans[ve[i][j]]+=ma[Find(ra, ve[i][j])];
      |         ^
a.cc:62:5: error: extended character ┊ is not valid in an identifier
   62 |     ┊   }
      |     ^
a.cc:66:5: error: extended character ┊ is not valid in an identifier
   66 |     ┊   printf("%d%c", ans[i], i==n ? '\n' : ' ');
      |     ^
a.cc: In function 'void init()':
a.cc:22:5: error: '\U0000250a' was not declared in this scope
   22 |     ┊   ra[i]=ro[i]=i;
      |     ^
a.cc: In function 'int main()':
a.cc:35:5: error: '\U0000250a' was not declared in this scope
   35 |     ┊   scanf("%d%d", &u, &v);
      |     ^
a.cc:36:6: error: expected ';' before 'u'
   36 |     ┊   u=Find(ro, u), v=Find(ro, v);
      |      ^  ~
      |      ;
a.cc:37:6: error: expected ';' before 'if'
   37 |     ┊   if(u!=v) {
      |      ^  ~~
      |      ;
a.cc:43:5: error: '\U0000250a' was not declared in this scope
   43 |     ┊   scanf("%d%d", &u, &v);
      |     ^
a.cc:44:6: error: expected ';' before 'u'
   44 |     ┊   u=Find(ra, u), v=Find(ra, v);
      |      ^  ~
      |      ;
a.cc:45:6: error: expected ';' before 'if'
   45 |     ┊   if(u!=v) {
      |      ^  ~~
      |      ;
a.cc:51:5: error: '\U0000250a' was not declared in this scope
   51 |     ┊   ve[Find(ro, i)].push_back(i);
      |     ^
a.cc:55:5: error: '\U0000250a' was not declared in this scope
   55 |     ┊   ma.clear();
      |     ^
a.cc:56:6: error: expected ';' before 'for'
   56 |     ┊   for(int j=0;j<(int)ve[i].size();j++) {
      |      ^  ~~~
      |      ;
a.cc:56:21: error: 'j' was not declared in this scope
   56 |     ┊   for(int j=0;j<(int)ve[i].size();j++) {
      |                     ^
a.cc:60:6: error: expected ';' before 'for'
   60 |     ┊   for(int j=0;j<(int)ve[i].size();j++) {
      |      ^  ~~~
      |      ;
a.cc:66:5: error: '\U0000250a' was not declared in this scope
   66 |     ┊   printf("%d%c", ans[i], i==n ? '\n' : ' ');
      |     ^