Language: C

include<stdio.h>
#define MAX 100

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

void AdjacencyMatrices(void);
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]);
    }
  }

  AdjacencyMatrices();


  for(i = 1;i <= n;i++){
    for(j = 1;j <= n;j++){
      printf("%d ",a[i][j]);
    }
    printf("\n");
  }
  return 0;
}

void AdjacencyMatrices(void)
{
  int i,j,x;
  for(x = 1;x <= n;x++){
    for(i = 1;i <= graph[x].k;i++){
      for(j = 1;j <= n;j++){
        if(j == graph[x].v[i]){
          a[x][j] = 1;
        } 
        else a[x][j] = 0;
      }
    }
  }
}

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:32:7: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   32 |       printf("%d ",a[i][j]);
      |       ^~~~~~
main.c:32:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:32:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:32:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:34:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   34 |     printf("\n");
      |     ^~~~~~
main.c:34:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c: In function 'AdjacencyMatrices':
main.c:43:28: error: request for member 'k' in something not a structure or union
   43 |     for(i = 1;i <= graph[x].k;i++){
      |                            ^
main.c:45:25: error: request for member 'v' in something not a structure or union
   45 |         if(j == graph[x].v[i]){
      |                         ^