Language: C

include<stdio.h>
#define MAX 100

typedef struct{
  int u;
  int k;
  int v[MAX];
}G;

void AdjacencyMatrices(int,int);
int a[MAX][MAX],n;
G graph[MAX];

int main()
{
  int i,j;

  scanf("%d",&n);
  for(i = 1;i <= n;i++){
    scanf("%d%d",&graph[i].u,&graph[i].k);
    for(j = 1;j <= graph[i].k;j++){
      if(graph[i].k == 0) break;
      scanf("%d",&graph[i].v[j]);
    }
  }

  for(i = 1;i <= n;i++){
    for(j = 1;j <= graph[i].k;j++){
      AdjacencyMatrices(i,j);
    }   
  }

  for(i = 1;i <= n;i++){
    for(j = 1;j <= n;j++){
      if(j == n) printf("%d",a[i][j]);
      else printf("%d ",a[i][j]);

    }
    printf("\n");
  }
  return 0;
}

void AdjacencyMatrices(int x,int y)
{
  int i;

    for(i = 1;i <= n;i++){
      if(graph[x].v[y] == i) a[x][i] += 1;
      else a[x][i] += 0;
    }
    i++;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
main.c:8:2: warning: data definition has no type or storage class
    8 | }G;
      |  ^
main.c:8:2: error: type defaults to 'int' in declaration of 'G' [-Wimplicit-int]
main.c:12:1: error: unknown type name 'G'
   12 | G graph[MAX];
      | ^
main.c: In function 'main':
main.c:18:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   18 |   scanf("%d",&n);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | include<stdio.h>
main.c:18:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   18 |   scanf("%d",&n);
      |   ^~~~~
main.c:18:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:20:27: error: request for member 'u' in something not a structure or union
   20 |     scanf("%d%d",&graph[i].u,&graph[i].k);
      |                           ^
main.c:20:39: error: request for member 'k' in something not a structure or union
   20 |     scanf("%d%d",&graph[i].u,&graph[i].k);
      |                                       ^
main.c:21:28: error: request for member 'k' in something not a structure or union
   21 |     for(j = 1;j <= graph[i].k;j++){
      |                            ^
main.c:22:18: error: request for member 'k' in something not a structure or union
   22 |       if(graph[i].k == 0) break;
      |                  ^
main.c:23:27: error: request for member 'v' in something not a structure or union
   23 |       scanf("%d",&graph[i].v[j]);
      |                           ^
main.c:28:28: error: request for member 'k' in something not a structure or union
   28 |     for(j = 1;j <= graph[i].k;j++){
      |                            ^
main.c:35:18: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   35 |       if(j == n) printf("%d",a[i][j]);
      |                  ^~~~~~
main.c:35:18: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:35:18: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:35:18: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:36:12: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   36 |       else printf("%d ",a[i][j]);
      |            ^~~~~~
main.c:36:12: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:39:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   39 |     printf("\n");
      |     ^~~~~~
main.c:39:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c: In function 'AdjacencyMatrices':
main.c:49:18: error: request for member 'v' in something not a structure or union
   49 |       if(graph[x].v[y] == i) a[x][i] += 1;
      |                  ^