criyle/codenet-compile-errors huggingface dataset:
Language: C

#include<iostream>

using namespace std;

int main(){
  int n;
  cin >> n;
  int i;
  int a[150][150];
  int x,y;
  for (x = 0; x < n; x++) {
    for (y = 0; y < n; y++) {
      a[x][y]=0;
    }
  }

  for (i = 0; i < n; i++) {
    int l;
    cin >> l;
    int k;
    cin >> k;
    int j;
    for (j = 0; j < k; j++) {
      int m=0;
      cin >> m;
      a[l-1][m-1]=1;
    }

  }

  for (x = 0; x < n; x++) {
    for (y = 0; y < n; y++) {
      cout << a[x][y] ;
    } cout << endl;
  }

  return 0;
}

Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C

#include <iostream>
using namespace std;
static const int N = 100;

int main() {
	int N[N][N];
	int n, u, k, v, i, j;

	scanf("%d", &n);

	for ( i = 0; i < n; i++ ) {
		for ( j = 0; j < n; j++ ) {
			M[i][j] = 0;
		}
	}

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

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

	return 0;
}

Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>
 
int main(){
  int i, j, n, k, v, u, A[100][100];
  scanf("%d", &n);
   for(i = 0; i < n; i++){
    for(j = 0; j < n; j++){
      M[i][j] = 0; 
    }
  }
 
  

  for(i = 0; i < n; i++){
   scanf("%d %d",&u ,&k);
   for(j = 0; j < k; j++){
     scanf("%d", &v);
     A[u-1][v-1] = 1;
   }
  }
 
  for(i = 0; i < n; i++){
   for(j = 0; j < n-1; j++){
    printf("%d",A[i][j]);
    }
   printf("%d",A[i][j]);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:7: error: 'M' undeclared (first use in this function)
    8 |       M[i][j] = 0;
      |       ^
main.c:8:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main () {
   int n, u, k, v, i, j;
   int G[100][100] = 0;

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

   for (i = 0; i < n; i++) {
    printf("%d", G[i][0]);

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

    printf("\n", G[i][0]);
   }
   return 0;
   
}

Compiler output:
main.c: In function 'main':
main.c:4:22: error: invalid initializer
    4 |    int G[100][100] = 0;
      |                      ^
Language: C

#iclude <stdio.h>
int main() {

int n, i, b, c, a[1000][1000], h[1000][1000];

scanf ("%d",&n);

for (i = 0; i < n; i++) {
for (b = 0; b < n; b++) {

scanf ("%d" &a[i][b]);

}
}

for (i = 0; i < n; i++) {
for (b = 0; b < n; b++) {

for (c = 2; 2 < n; c++) {

if (a[i][0] == a[i][c]) {
h[i][b] = 1;
break;
}
}

if (h[i][b] != 1)
h[i][b] = 0;

}
}

for (i = 0; i < n; i++) {
for (b = 0; b < n; b++) {

printf ("%d ",h[i][b]);
}
}

return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #iclude; did you mean #include?
    1 | #iclude <stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:6:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 | scanf ("%d",&n);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #iclude <stdio.h>
main.c:6:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 | scanf ("%d",&n);
      | ^~~~~
main.c:6:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:11:13: error: invalid operands to binary & (have 'char *' and 'int')
   11 | scanf ("%d" &a[i][b]);
      |        ~~~~ ^~~~~~~~
      |        |         |
      |        char *    int
main.c:36:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   36 | printf ("%d ",h[i][b]);
      | ^~~~~~
main.c:36:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:36:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:36:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>
 
int main(){
  int i, j, n, k, v, u, A[200][200];
  scanf("%d",&n);
   for(i = 0; i < n; i++){
    for(j = 0; j < n; j++){
      A[i][j] = 0; 
    }
  }
 
  for(i = 0; i < n; i++){
   scanf("%d %d",&u ,&k);
   for(j = 0; j < k; j++){
     scanf("%d", &v);
     A[u][v] = 1;
   }
  }
 
  for(i = 0; i < n; i++){
   for(j = 0; j < n1; j++){
    printf("%d",A[i][j]);
    }
   printf("%d",A[i][j]);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:19: error: 'n1' undeclared (first use in this function); did you mean 'n'?
   21 |    for(j = 0; j < n1; j++){
      |                   ^~
      |                   n
main.c:21:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#iclude <stdio.h>
int main() {

int n, i, b, c, a[1000][1000], h[1000][1000];

scanf ("%d",&n);

for (i = 0; i < n; i++) {
for (b = 0; b < n; b++) {

scanf ("%d" &a[i][b]);

}
}

for (i = 0; i < n; i++) {
for (b = 0; b < n; b++) {

for (c = 2; 2 < n; c++) {

if (a[i][0] == a[i][c]) {
h[i][b] = 1;
break;
}
}

if (h[i][b] != 1)
h[i][b] = 0;

}
}

for (i = 0; i < n; i++) {
for (b = 0; b < n; b++) {

putchar ("%d ",h[i][b]);

}

putchar (\n);

}

return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #iclude; did you mean #include?
    1 | #iclude <stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:6:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 | scanf ("%d",&n);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #iclude <stdio.h>
main.c:6:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 | scanf ("%d",&n);
      | ^~~~~
main.c:6:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:11:13: error: invalid operands to binary & (have 'char *' and 'int')
   11 | scanf ("%d" &a[i][b]);
      |        ~~~~ ^~~~~~~~
      |        |         |
      |        char *    int
main.c:36:1: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
   36 | putchar ("%d ",h[i][b]);
      | ^~~~~~~
main.c:36:1: note: include '<stdio.h>' or provide a declaration of 'putchar'
main.c:36:10: error: passing argument 1 of 'putchar' makes integer from pointer without a cast [-Wint-conversion]
   36 | putchar ("%d ",h[i][b]);
      |          ^~~~~
      |          |
      |          char *
main.c:36:10: note: expected 'int' but argument is of type 'char *'
main.c:36:1: warning: too many arguments to built-in function 'putchar' expecting 1 [-Wbuiltin-declaration-mismatch]
   36 | putchar ("%d ",h[i][b]);
      | ^~~~~~~
main.c:40:10: error: stray '\' in program
   40 | putchar (\n);
      |          ^
Language: C

#include <stdio.h>

int main() {
   int M[100][100];
   int n, u, k, v;
   int i;

   for (i = 0; i < 100; i++) {
      for (j = 0; j < 100; j++) {
         M[i][j] = 0;
      }
   }

   for 

Compiler output:
main.c: In function 'main':
main.c:9:12: error: 'j' undeclared (first use in this function)
    9 |       for (j = 0; j < 100; j++) {
      |            ^
main.c:9:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:15: error: expected '(' at end of input
main.c:14:4: error: expected declaration or statement at end of input
   14 |    for
      |    ^~~
Language: C

#iclude <stdio.h>
int main() {

int n, i, b, c, a[1000][1000], h[1000][1000];

scanf ("%d",&n);

for (i = 0; i < n; i++) {
for (b = 0; b < n; b++) {

scanf ("%d" &a[i][b]);

}
}

for (i = 0; i < n; i++) {
for (b = 0; b < n; b++) {

for (c = 2; 2 < n; c++) {

if (a[i][0] == a[i][c]) {
h[i][b] = 1;
break;
}
}

if (h[i][b] != 1)
h[i][b] = 0;

}
}

for (i = 0; i < n; i++) {
for (b = 0; b < n; b++) {

putchar ("%d ",h[i][b] );

}

putchar (\n);

}

return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #iclude; did you mean #include?
    1 | #iclude <stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:6:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 | scanf ("%d",&n);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #iclude <stdio.h>
main.c:6:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 | scanf ("%d",&n);
      | ^~~~~
main.c:6:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:11:13: error: invalid operands to binary & (have 'char *' and 'int')
   11 | scanf ("%d" &a[i][b]);
      |        ~~~~ ^~~~~~~~
      |        |         |
      |        char *    int
main.c:36:1: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
   36 | putchar ("%d ",h[i][b] );
      | ^~~~~~~
main.c:36:1: note: include '<stdio.h>' or provide a declaration of 'putchar'
main.c:36:10: error: passing argument 1 of 'putchar' makes integer from pointer without a cast [-Wint-conversion]
   36 | putchar ("%d ",h[i][b] );
      |          ^~~~~
      |          |
      |          char *
main.c:36:10: note: expected 'int' but argument is of type 'char *'
main.c:36:1: warning: too many arguments to built-in function 'putchar' expecting 1 [-Wbuiltin-declaration-mismatch]
   36 | putchar ("%d ",h[i][b] );
      | ^~~~~~~
main.c:40:10: error: stray '\' in program
   40 | putchar (\n);
      |          ^
Language: C

#iclude <stdio.h>
int main() {

int n, i, b, c, a[1000][1000], h[1000][1000];

scanf ("%d",&n);

for (i = 0; i < n; i++) {
for (b = 0; b < n; b++) {

scanf ("%d" &a[i][b]);

}
}

for (i = 0; i < n; i++) {
for (b = 0; b < n; b++) {

for (c = 2; 2 < n; c++) {

if (a[i][0] == a[i][c]) {
h[i][b] = 1;
break;
}
}

if (h[i][b] != 1)
h[i][b] = 0;

}
}

for (i = 0; i < n; i++) {
for (b = 0; b < n; b++) {

printf("%d \n",h[i][b] );

}
}

return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #iclude; did you mean #include?
    1 | #iclude <stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:6:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 | scanf ("%d",&n);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #iclude <stdio.h>
main.c:6:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 | scanf ("%d",&n);
      | ^~~~~
main.c:6:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:11:13: error: invalid operands to binary & (have 'char *' and 'int')
   11 | scanf ("%d" &a[i][b]);
      |        ~~~~ ^~~~~~~~
      |        |         |
      |        char *    int
main.c:36:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   36 | printf("%d \n",h[i][b] );
      | ^~~~~~
main.c:36:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:36:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:36:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>

#define N 100

int main() {
   int u, v, k, i, j;

   scanf("%d", &n);
   for (i = 0; i < n; i++) {
      for ( j = 0; j < n; j++) {
         M[i][j] = 0;
      }
   }

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

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:17: error: 'n' undeclared (first use in this function)
    8 |    scanf("%d", &n);
      |                 ^
main.c:8:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:10: error: 'M' undeclared (first use in this function)
   11 |          M[i][j] = 0;
      |          ^
Language: C

#include<stdio.h>

int main() {
    int n, i, j, u, k, v, M[n][n];
    scanf("%d",&n);
    for(i = 0; i < n; i++){
    for(j = 0; j < n; j++){
     M[i][j] = 0;
    }
    }

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

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

Compiler output:
main.c: In function 'main':
main.c:23:20: error: 'g' undeclared (first use in this function)
   23 |        printf("%d",g[i][j]);
      |                    ^
main.c:23:20: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>

bool graph_converts_to_matrix(graph_vertex_t vertexes[], size_t len, uint32_t matrix[][100])
{
  if ((vertexes == NULL) || (len == 0)) return false;
  uint32_t i, j;
  for (i = 0; i < len; i++) {
    for (j = 0; j < len; j++) {
      matrix[i][j] = 0;
    }
  }

  uint32_t n, m;
  for (n = 0; n < len; n++) {
    graph_vertex_t v = vertexes[n];
    for (m = 0; m < v.len; m++) {
      matrix[v.index - 1][v.array[m] - 1] = 1;
    }
  }

  return true;
}

#if !defined(TEST)
#include <stdio.h>
static graph_vertex_t vertexes[GRAPH_MATRIX_SIZE];
int32_t main(void)
{
  int32_t num;
  scanf("%d", &num);
  uint32_t i;
  for (i = 0; i < num; i++) {
    graph_vertex_t *v = &vertexes[i];

    scanf("%d", &v->index);
    scanf("%lu", &v->len);
    uint32_t j;
    for (j = 0; j < v->len; j++) {
      scanf("%d", &v->array[j]);
    }
  }

  uint32_t matrix[GRAPH_MATRIX_SIZE][GRAPH_MATRIX_SIZE];
  graph_converts_to_matrix(vertexes, num, matrix);
  for (i = 0; i < num; i++) {
    uint32_t j;
    for (j = 0; j < num; j++) {
      if (j != 0) printf(" ");
      printf("%d", matrix[i][j]);
    }
    printf("\n");
  }

  return 0;
}
#endif

Compiler output:
main.c:5:31: error: unknown type name 'graph_vertex_t'
    5 | bool graph_converts_to_matrix(graph_vertex_t vertexes[], size_t len, uint32_t matrix[][100])
      |                               ^~~~~~~~~~~~~~
main.c:28:8: error: unknown type name 'graph_vertex_t'
   28 | static graph_vertex_t vertexes[GRAPH_MATRIX_SIZE];
      |        ^~~~~~~~~~~~~~
main.c:28:32: error: 'GRAPH_MATRIX_SIZE' undeclared here (not in a function)
   28 | static graph_vertex_t vertexes[GRAPH_MATRIX_SIZE];
      |                                ^~~~~~~~~~~~~~~~~
main.c: In function 'main':
main.c:35:5: error: unknown type name 'graph_vertex_t'
   35 |     graph_vertex_t *v = &vertexes[i];
      |     ^~~~~~~~~~~~~~
main.c:37:19: error: request for member 'index' in something not a structure or union
   37 |     scanf("%d", &v->index);
      |                   ^~
main.c:38:20: error: request for member 'len' in something not a structure or union
   38 |     scanf("%lu", &v->len);
      |                    ^~
main.c:40:22: error: request for member 'len' in something not a structure or union
   40 |     for (j = 0; j < v->len; j++) {
      |                      ^~
main.c:41:21: error: request for member 'array' in something not a structure or union
   41 |       scanf("%d", &v->array[j]);
      |                     ^~
main.c:46:3: error: implicit declaration of function 'graph_converts_to_matrix' [-Wimplicit-function-declaration]
   46 |   graph_converts_to_matrix(vertexes, num, matrix);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~
Language: C

#include<stdio.h>

#define N 101

int main(){
int i,j,n;
int u,k,v;
int a[N][N];

scanf("%d",&n);

for(i=0;i<n;i++){
    for(j=0;j<n;j++){
        a[i][j]=0;
    }
}

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

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

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:22:9: error: 'G' undeclared (first use in this function)
   22 |         G[u-1][v-1]=1;
      |         ^
main.c:22:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#define MAX 100

int number[MAX][MAX];

int main(void){

 int a,b,c,i,j,l;

 scanf("%d',&l);

 for(i=0; i<l; i++){
 scanf("%d",&a);
 scanf("%d",&b);

  for(j=0; j < b; j++){
  scanf("%d",&c);
  number[a-1][c-1] =1;
  }
 }
 for(i =0; i<l; i++){
  for(j=0; j<l-1; j++){
   printf("%d",number[i][j]);
   printf("%d\n",number[i][j]);
  }
 }
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:8: warning: missing terminating " character
   10 |  scanf("%d',&l);
      |        ^
main.c:10:8: error: missing terminating " character
   10 |  scanf("%d',&l);
      |        ^~~~~~~~~
main.c:12:2: error: expected expression before 'for'
   12 |  for(i=0; i<l; i++){
      |  ^~~
main.c:27:10: error: expected ';' before '}' token
   27 | return 0;
      |          ^
      |          ;
   28 | }
      | ~
Language: C

#include <stdio.h>
#define MAX 100

int number[MAX][MAX];

int main(void){

 int a,b,c,i,j,l;

 scanf("%d',&l);

 for(i=0; i<l; i++){
 scanf("%d",&a);
 scanf("%d",&b);

  for(j=0; j < b; j++){
  scanf("%d",&c);
  number[a-1][c-1] =1;
  }
 }
 for(i =0; i<l; i++){
  for(j=0; j<l-1; j++){
   printf("%d",number[i][j]);
  }
 printf("%d\n",number[i][j]);
 }
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:8: warning: missing terminating " character
   10 |  scanf("%d',&l);
      |        ^
main.c:10:8: error: missing terminating " character
   10 |  scanf("%d',&l);
      |        ^~~~~~~~~
main.c:12:2: error: expected expression before 'for'
   12 |  for(i=0; i<l; i++){
      |  ^~~
main.c:27:10: error: expected ';' before '}' token
   27 | return 0;
      |          ^
      |          ;
   28 | }
      | ~
Language: C

#include<stdio.h>

int main(){

  int i,j,u,k,v,A[100][100],n;

  scanf("%d",&n);

  for(i=0;i<n;i++){

    A[i][i]=0;

  }

  for(i=0;i<n;i++){
  
    scanf("%d%d",&u,&k);

    for(j=0;j<k;j++){

      scanf("%d",&v);
      
      A[u-1][v-1]=1;



    }
  }

  printf("\n");

  for(i=0;i<u;i++){
    for(j=0;j<u;j++){

      if(j==u-1) printf("%d\n",A[i][j]);
      else printf("%d ",A[i][j]);

    }
  }

Compiler output:
main.c: In function 'main':
main.c:39:3: error: expected declaration or statement at end of input
   39 |   }
      |   ^
Language: C

#include <stdio.h>
#define N 100

int main(){
  int n, i, j, a, k, l;
  int Adj[N][N];

  scanf("%d", &n);
  for(i = 0; i < n; i++){
    for(j = 0; j < n; j++){
      Adj[i][j] = 0;
    }
  }

  for (i = 0; i < n; i++){
    scanf("%d%d", &a, &k);
    for(j = 0; j < k; j++){
      scanf("%d", &l);
      Adj[i][l-1] = 1;
    }
  }

  for(i = 0; i < n; i++){
    for(j = 0; j < n; j++){
      if(j != n-1) printf("%d ", Adj[i][j]);
      else primtf("%d", Adj[i][j]);
    }
    printf("\n");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:26:12: error: implicit declaration of function 'primtf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   26 |       else primtf("%d", Adj[i][j]);
      |            ^~~~~~
      |            printf
Language: C

#include<stdio.h>

int main(){
  int i, j, u, k, n, v, A[101][101] = {};

  scanf("%d", &n);

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

  for(i=1;i<=n;i++){
    for(j=1;j<=n;j++){
      if(j != 1)printf(" ");
      printf("%d", A[i][j]);
    }
    printf("\n");
  }

return 0;
}

}

Compiler output:
main.c:28:1: error: expected identifier or '(' before '}' token
   28 | }
      | ^
Language: C

#include <stdio.h>
 
#define N 101

int main(){
 
  int n, i, j; 
  int a, b, c;
  int A[N][N];
 
  scanf("%d",&n);
   
  for(i=1;i<=n;i++){
    for(j=1;j<=n;j++){
      v[i][j] = 0;
    }
  }


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

Compiler output:
main.c: In function 'main':
main.c:15:7: error: 'v' undeclared (first use in this function)
   15 |       v[i][j] = 0;
      |       ^
main.c:15:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<iostream>
using namespace std;
static const int N=100;

main(){
int M[N][N];
int n,u,k,v;

cin >> n;

for(int i=0;i<n;i++){
for(int j=0;j<n;j++)M[i][j]=0;
}

for(int i=0;i<n;i++){
cin >> u >> k;
u--;
for(int j=0;j<k;j++){
cin >> v;
v--;
M[u][v]=1;
}
}

for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
if(j)cout << " ";
cout << M[i][j];
}
cout << endl;
}

return 0;
}

Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>
static const int N 100;
int main(){
  int M[N][N];
  int n,i,j,u,k,v;

  scanf("%d",&n);

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

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

Compiler output:
main.c:2:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant
    2 | static const int N 100;
      |                    ^~~
main.c: In function 'main':
main.c:4:9: error: 'N' undeclared (first use in this function)
    4 |   int M[N][N];
      |         ^
main.c:4:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C


#include<stdio.h>

static const int N = 100;

int main(){
  int M[N][N];
  int n, u, k, v;

  scanf("%d",&n);

  for(int i=0; i<n; i++){
    for(int j=0; j<n; j++){
      M[i][j] = 0;
    }
  }

  for(int i=0; i<n; i++){
    scanf("%d%d",&u,&k);
    u--;
    for(int j=0; j<k; j++){
      scanf("%d",&v);
      v--;
      M[u][v] = 1;
    }
  }

  for(int i=0; i<n; i++){
    for(int j=0; j<n; j++){
      if(j!=0){
        printf(" ");
      }
        printf("%d",M[i][j]);
      }
      printf("\n");
    }

    return 0;
  }

#include<stdio.h>

static const int N = 100;

int main(){
  int M[N][N];
  int n, u, k, v;

  scanf("%d",&n);

  for(int i=0; i<n; i++){
    for(int j=0; j<n; j++){
      M[i][j] = 0;
    }
  }

  for(int i=0; i<n; i++){
    scanf("%d%d",&u,&k);
    u--;
    for(int j=0; j<k; j++){
      scanf("%d",&v);
      v--;
      M[u][v] = 1;
    }
  }

  for(int i=0; i<n; i++){
    for(int j=0; j<n; j++){
      if(j!=0){
        printf(" ");
      }
        printf("%d",M[i][j]);
      }
      printf("\n");
    }

    return 0;
  }

Compiler output:
main.c:43:18: error: redefinition of 'N'
   43 | static const int N = 100;
      |                  ^
main.c:4:18: note: previous definition of 'N' with type 'int'
    4 | static const int N = 100;
      |                  ^
main.c:45:5: error: redefinition of 'main'
   45 | int main(){
      |     ^~~~
main.c:6:5: note: previous definition of 'main' with type 'int()'
    6 | int main(){
      |     ^~~~
Language: C


#include<stdio.h>
#define N 101
int A[N][N],x;
void graph(int n,int h){

A[n][h] = 1;

}
int main(){

int i,j,v;
for(i=0;i<x;i++){
for(j=0;j<x;j++)
A[i][j]=0;
}
}

for(i=0;i<x;i++){
 printf("%d",i+1);
 scanf("%d",v);
 for(j=0;j<v;i++){
  scanf("%d",&g);
  graph(i,g-1);
  }
}
for(i=0;i<x;i++){
 for(j=0;j<x;j++){
printf("%d ",&A[i][j]);
}
printf("\n");
}
return 0;
}

Compiler output:
main.c:19:1: error: expected identifier or '(' before 'for'
   19 | for(i=0;i<x;i++){
      | ^~~
main.c:19:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   19 | for(i=0;i<x;i++){
      |          ^
main.c:19:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   19 | for(i=0;i<x;i++){
      |              ^~
main.c:27:1: error: expected identifier or '(' before 'for'
   27 | for(i=0;i<x;i++){
      | ^~~
main.c:27:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   27 | for(i=0;i<x;i++){
      |          ^
main.c:27:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   27 | for(i=0;i<x;i++){
      |              ^~
main.c:33:1: error: expected identifier or '(' before 'return'
   33 | return 0;
      | ^~~~~~
main.c:34:1: error: expected identifier or '(' before '}' token
   34 | }
      | ^
Language: C

#include<stdio.h>

static const int N = 100;
static const int INFTY 1000000;

int main(){
  
  int M[N][N];
  int n, u, k, v; 
  int i, j;


  scanf("%d", &n);

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

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

  return 0;
}

Compiler output:
main.c:4:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant
    4 | static const int INFTY 1000000;
      |                        ^~~~~~~
Language: C

#include<stdio.h>
int main(){
  int M[N][N];
  int i,j,n,u,k,v;

  scanf("%d",&n);

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

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

Compiler output:
main.c: In function 'main':
main.c:3:9: error: 'N' undeclared (first use in this function)
    3 |   int M[N][N];
      |         ^
main.c:3:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

#define N 100

int main (){
  int M[N][N];
  int n, u, v, k, i, j;
  scanf("%d", &n);
  for(i=0, i<n, i++){
    for(j=0; j<n; j++)
    M[i][j] = 0;
  }

  for(i=0; i<n; i++){
    scanf("%d%d", &u, &k);
    u--;
    for(j=0; j<k; j++){
      scanf("%d", &v);
      v--;
      M[u][v];
    }
  }

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

  return 0;

}

Compiler output:
main.c: In function 'main':
main.c:9:20: error: expected ';' before ')' token
    9 |   for(i=0, i<n, i++){
      |                    ^
      |                    ;
main.c:9:20: error: expected expression before ')' token
Language: C

#include<stdio.h>
#define MAX 100
int main(){
  int i,j,n,k,v,u;
  int M[MAX][MAX];
  for(i=0;i<n;i+){
    for(j=0;j<n;j++)M[i][j]=0;
  }
  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%d%d",&u,&k);
    u--;//0 origin
    for(j=0;j<k;j++){
      scanf("%d",&v);
      v--;
      M[u][v]=1;
    }
  }

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:17: error: expected expression before ')' token
    6 |   for(i=0;i<n;i+){
      |                 ^
Language: C

#include<stdio.h>
#define MAX 100
int main(){
  int i,j,n,k,v,u;
  int M[MAX][MAX];

   scanf("%d",&n);
  for(i=0;i<n;i+){
    for(j=0;j<n;j++)M[i][j]=0;
  }
 
  for(i=0;i<n;i++){
    scanf("%d%d",&u,&k);
    u--;//0 origin
    for(j=0;j<k;j++){
      scanf("%d",&v);
      v--;
      M[u][v]=1;
    }
  }

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:17: error: expected expression before ')' token
    8 |   for(i=0;i<n;i+){
      |                 ^
Language: C

#include<stdio.h> 
#define N 105
 
int main(){
  int x,y,n,k,i,j,a[N][N];
 
  for(i=0; i < N; i++){
    for(j=0; j < N; j++){
      a[i][j]=0;
    }
  }
scanf("%d",&n);
  for(i=1; i <=n; i++){
    scanf("%d%d",&x,&k);
    for(j=1; j <=k; j++){
      scanf("%d",&v);
      a[x][y]=1;
    }
  }
 
  for(i=1; i <=n; i++){
    for(j=1; j <=n; j++){
      printf("%d",a[i][j]);
      if(j==n) printf("\n");
      else printf(" ");
    }
  }
 
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:19: error: 'v' undeclared (first use in this function)
   16 |       scanf("%d",&v);
      |                   ^
main.c:16:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(){
	int n;
	int index, count, v_index;
	int **matrix;
	int i,j;
	
	scanf("%d", &n);
	matrix = (int **)malloc(sizeof(int *) * n);
	for(i = 0; i < n; i++){
		matrix[i] = (int *)malloc(sizeof(int) * n);
		for(j = 0; j < n; j++){
			matrix[i][j] = 0;
		}
	}
	
	for(i = 0; i < n; i++){
		scanf("%d%d", &index, &count);
		for(j = 0; j < count; j++){
			scanf("%d", &v_index);
			matrix[index - 1][v_index - 1] = 1;
		}
	}
	
	for(i = 0; i < n; i++){
		for(j = 0; j < n; j++){
			printf("%-2d", matrix[i][j]);
		}
		printf("\n");
	}
	printf("\n")
} 

Compiler output:
main.c: In function 'main':
main.c:10:26: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
   10 |         matrix = (int **)malloc(sizeof(int *) * n);
      |                          ^~~~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
    1 | #include <stdio.h>
  +++ |+#include <stdlib.h>
    2 | 
main.c:10:26: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch]
   10 |         matrix = (int **)malloc(sizeof(int *) * n);
      |                          ^~~~~~
main.c:10:26: note: include '<stdlib.h>' or provide a declaration of 'malloc'
main.c:32:21: error: expected ';' before '}' token
   32 |         printf("\n")
      |                     ^
      |                     ;
   33 | }
      | ~
Language: C

#include <stdio.h>

int main(void)
{
  int i,j,n,u,l,v,M[100][100];
  scanf("%d",&n);
  for(i=0;i<n;i++){
    for(j=0;j<n;j++){
      M[i][j]=0;
    }
  }
  for(i=0;i<n;i++){
    scanf("%d",&u);
    scanf("%d",&k);
    u--;
    for(j=0;j<k;j++){
      scanf("%d",&v);
      v--;
      M[u][v]=1;
    }
  }
  for(i=0;i<n;i++){
    for(j=0;j<n;j++){
      if(j>0){
        printf(" ");
      }
      printf("%d",M[i][j]);
    }
    printf("\n");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:17: error: 'k' undeclared (first use in this function)
   14 |     scanf("%d",&k);
      |                 ^
main.c:14:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
#define N 100

int main()
{
   int M[N][N];
   int i, j, n, u, k, v;

   scanf("%d", &n);

   for (i=0; i<n; i++){
      for (j=0; j<n; j++)
         M[i][j] = 0;
   }

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

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

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:29: error: expected ';' before 'u'
   17 |       scanf("%d %d", &u, &k)
      |                             ^
      |                             ;
   18 |       u--;
      |       ~
Language: C

#include <stdio.h>

int main(void)
{
  int A[100][100];
  int n, i, j, k, u, v;

  scanf("%d", &n);

  for(i = 0; i < n; i++) {
    for(j = 0; j < n; j++) {
      A[i][j] = 0;
    }
  }

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

  for(i = 0; i < n; i++) {
    for(j = 0; j < n; j++) {
      printf("%d ", A[i][j]);
    }
    putchar('\n');
  }

  return 0;
}

  

Compiler output:
main.c: In function 'main':
main.c:31:1: error: expected declaration or statement at end of input
   31 | }
      | ^
Language: C

#include<stdio.h>

int main()
{
  int n, m, i, j;
  int data[100][100] = 0;
  int ans[100][100] = 0;

  scanf("%d", &n);
  for(i = 0; i < n+2; i++){
    scanf("%d", %x);
    scanf("%d", %m);
    for(j = 0; j < m; j++){
      scanf("%d", data[x][j]);
    }
  }
  
  for(i = 0; i < n; i++){
    for(j = 0; j < n; j++){
      if(data[i][j] == 0){
        break;
      }
    ans[i][data[i][j]] = 1;
  }
  
  for(i = 0; i < n; i++){
    printf("%d", ans[i][0]);
    for(j = 1; j < n; j++){
      printf(" %d", ans[i][j]);
    }
    printf("\n");
  }
}

Compiler output:
main.c: In function 'main':
main.c:6:24: error: invalid initializer
    6 |   int data[100][100] = 0;
      |                        ^
main.c:7:23: error: invalid initializer
    7 |   int ans[100][100] = 0;
      |                       ^
main.c:11:17: error: expected expression before '%' token
   11 |     scanf("%d", %x);
      |                 ^
main.c:12:17: error: expected expression before '%' token
   12 |     scanf("%d", %m);
      |                 ^
main.c:14:24: error: 'x' undeclared (first use in this function)
   14 |       scanf("%d", data[x][j]);
      |                        ^
main.c:14:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:33:1: error: expected declaration or statement at end of input
   33 | }
      | ^
Language: C

#include<stdio.h>

int main()
{
  int n, m, i, j;
  int data[100][100] = {0};
  int ans[100][100] = {0};

  scanf("%d", &n);
  for(i = 0; i < n+2; i++){
    scanf("%d", &x);
    scanf("%d", &m);
    for(j = 0; j < m; j++){
      scanf("%d", &data[x][j]);
    }
  }
  
  for(i = 0; i < n; i++){
    for(j = 0; j < n; j++){
      if(data[i][j] == 0){
        break;
      }
    ans[i][data[i][j]] = 1;
  }
  
  for(i = 0; i < n; i++){
    printf("%d", ans[i][0]);
    for(j = 1; j < n; j++){
      printf(" %d", ans[i][j]);
    }
    printf("\n");
  }
}

Compiler output:
main.c: In function 'main':
main.c:11:18: error: 'x' undeclared (first use in this function)
   11 |     scanf("%d", &x);
      |                  ^
main.c:11:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:33:1: error: expected declaration or statement at end of input
   33 | }
      | ^
Language: C

#include<stdio.h>

int main()
{
  int n, m, i, j, x;
  int data[100][100] = {0};
  int ans[100][100] = {0};

  scanf("%d", &n);
  for(i = 0; i < n+2; i++){
    scanf("%d", &x);
    scanf("%d", &m);
    for(j = 0; j < m; j++){
      scanf("%d", &data[x][j]);
    }
  }
  
  for(i = 0; i < n; i++){
    for(j = 0; j < n; j++){
      if(data[i][j] == 0){
        break;
      }
    ans[i][data[i][j]] = 1;
  }
  
  for(i = 0; i < n; i++){
    printf("%d", ans[i][0]);
    for(j = 1; j < n; j++){
      printf(" %d", ans[i][j]);
    }
    printf("\n");
  }
}

Compiler output:
main.c: In function 'main':
main.c:33:1: error: expected declaration or statement at end of input
   33 | }
      | ^
Language: C

#include <stdio.h>

int main(void)
{
 int i,j,n,u,k,v;
 int Adj[100][100];

 scanf("%d",&n);

 for(i=0;i<n;i++){

   scanf("%d%d",&u,&k);

   for(j=0;j<k;j++){

     scanf("%d",&c);

     Adj[u][v]=1;

   }
 }

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

 printf("%d\n",Adj[n][n]);

 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:18: error: 'c' undeclared (first use in this function)
   16 |      scanf("%d",&c);
      |                  ^
main.c:16:18: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(){
  int M[100][100];
  int n, i, j, k, u, v;

  printf("%d", &n);

  for(i=0;i<n;i++){
    for(j=0;j<n;j++){
      m[i][j] = 0;
    }
  }

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

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

  return 0;
}
 

Compiler output:
main.c: In function 'main':
main.c:11:7: error: 'm' undeclared (first use in this function)
   11 |       m[i][j] = 0;
      |       ^
main.c:11:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(){
  int M[100][100];
  int n, i, j, k, u, v;

  printf("%d", &n);

  for(i=0;i<n;i++){
    for(j=0;j<n;j++){
      m[i][j] = 0;
    }
  }

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

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

  return 0;
}
 

Compiler output:
main.c: In function 'main':
main.c:11:7: error: 'm' undeclared (first use in this function)
   11 |       m[i][j] = 0;
      |       ^
main.c:11:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
#define N 100

int main(){

  int n, i, j, A[N][N], s, t, u;
  
  for ( i = 0; i < n; i++ ) {
    for ( j = 0; j < t; j++ ) {
      A[i][j] = 0;
    }
  }

  scanf("%d", &n);
  for ( i = 0; i < n; i++ ) {
    scanf("%d %d", &s, &t);
    for ( j = 0; j < t; j++ ) {
      scanf("%d", &u);
      A[s][u] = 1;
    }
  }

  for ( i = 0; i < n; i++ ) {
    for ( j = 0; j < t; j++ ) {
      if ( i != 0 ) printf(" ");
      printf("%d", A)
    }
    printf("\n");
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:26:22: error: expected ';' before '}' token
   26 |       printf("%d", A)
      |                      ^
      |                      ;
   27 |     }
      |     ~
Language: C

#include <stdio.h>
int main(void)
{
  int a,b,c,x[110][110],y[100],i,j;
  scanf("%d",&a);
  for(i=0;i<a;i++){
    scanf("%d%d",&b,&k);
    for(j=0;j<c;j++){
      scanf("%d",&y[j]);
      x[b-1][y[j]-1]=1;
    }
  }
  for(i=0;i<a;i++){
    for(j=0;j<a;j++){
      if(j==0) printf("%d",x[i][j]);
      else printf(" %d",x[i][j]);
    }
    printf("\n");
  }
 
 
  return 0;
 
}

Compiler output:
main.c: In function 'main':
main.c:7:22: error: 'k' undeclared (first use in this function)
    7 |     scanf("%d%d",&b,&k);
      |                      ^
main.c:7:22: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
 
int main(){
inti,j,k,u,n,v;
p[100][100]
    scanf("%d",&n);
    for(i=0;i<n;i++){
        for (j=0;j<n;j++){
            p[i][j]  = 0;
}
}  
 for(i=0;i<n;i++) {
        scanf("%d %d",&u,&k);
        for(j=0;j<k;j++){
            scanf("%d",&v);
            p[u-1][v-1]  = 1;
 }
    }
     
     
for(i=0;i<n;i++){
for(j=0;j<n;j++){
if(j=n-1)
printf("%d",p[i][j]);
  else  printf(" ");
             
 }
        printf("\n");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:1: error: 'inti' undeclared (first use in this function); did you mean 'int'?
    4 | inti,j,k,u,n,v;
      | ^~~~
      | int
main.c:4:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:6: error: 'j' undeclared (first use in this function)
    4 | inti,j,k,u,n,v;
      |      ^
main.c:4:8: error: 'k' undeclared (first use in this function)
    4 | inti,j,k,u,n,v;
      |        ^
main.c:4:10: error: 'u' undeclared (first use in this function)
    4 | inti,j,k,u,n,v;
      |          ^
main.c:4:12: error: 'n' undeclared (first use in this function)
    4 | inti,j,k,u,n,v;
      |            ^
main.c:4:14: error: 'v' undeclared (first use in this function)
    4 | inti,j,k,u,n,v;
      |              ^
main.c:5:1: error: 'p' undeclared (first use in this function)
    5 | p[100][100]
      | ^
main.c:5:12: error: expected ';' before 'scanf'
    5 | p[100][100]
      |            ^
      |            ;
    6 |     scanf("%d",&n);
      |     ~~~~~   
main.c:7:9: error: 'i' undeclared (first use in this function)
    7 |     for(i=0;i<n;i++){
      |         ^
Language: C

#include <stdio.h>
 
int main(){
int i,j,k,u,n,v;
p[100][100]
    scanf("%d",&n);
    for(i=0;i<n;i++){
        for (j=0;j<n;j++){
            p[i][j]  = 0;
}
}  
 for(i=0;i<n;i++) {
        scanf("%d %d",&u,&k);
        for(j=0;j<k;j++){
            scanf("%d",&v);
            p[u-1][v-1]  = 1;
 }
    }
     
     
for(i=0;i<n;i++){
for(j=0;j<n;j++){
if(j=n-1)
printf("%d",p[i][j]);
  else  printf(" ");
             
 }
        printf("\n");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: 'p' undeclared (first use in this function)
    5 | p[100][100]
      | ^
main.c:5:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:12: error: expected ';' before 'scanf'
    5 | p[100][100]
      |            ^
      |            ;
    6 |     scanf("%d",&n);
      |     ~~~~~
Language: C

#include<stdio.h>
main(){
int n;
int i,,j,m[100][100],a,b,c;
 
scanf("%d", &n);
  for(i=0;i<n;i++){
    for(j=0;j<n;j++){
      m[i][j]=0;
    }
  }
 
  for(i=0;i<n;i++){
    scanf("%d%d",&a,&b);
    for(j=0;j<b;j++){
      scanf("%d",&c);
      m[i][v]=1;
    }
  }
  for(i=0;i<n;i++){
    for(j=0;j<n;j++){
      if(j>1)printf(" ");
      printf("%d",m[i][j]);
    }
    printf("\n");
  }
  return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:4:7: error: expected identifier or '(' before ',' token
    4 | int i,,j,m[100][100],a,b,c;
      |       ^
main.c:8:9: error: 'j' undeclared (first use in this function)
    8 |     for(j=0;j<n;j++){
      |         ^
main.c:8:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:7: error: 'm' undeclared (first use in this function)
    9 |       m[i][j]=0;
      |       ^
main.c:14:19: error: 'a' undeclared (first use in this function)
   14 |     scanf("%d%d",&a,&b);
      |                   ^
main.c:14:22: error: 'b' undeclared (first use in this function)
   14 |     scanf("%d%d",&a,&b);
      |                      ^
main.c:16:19: error: 'c' undeclared (first use in this function)
   16 |       scanf("%d",&c);
      |                   ^
main.c:17:12: error: 'v' undeclared (first use in this function)
   17 |       m[i][v]=1;
      |            ^
Language: C

#include<stdio.h>
int main(){
int n;
int i,j,m[100][100],a,b,c;
 
scanf("%d", &n);
  for(i=0;i<n;i++){
    for(j=0;j<n;j++){
      m[i][j]=0;
    }
  }
 
  for(i=0;i<n;i++){
    scanf("%d%d",&a,&b);
    for(j=0;j<b;j++){
      scanf("%d",&c);
      m[i][v]=1;
    }
  }
  for(i=0;i<n;i++){
    for(j=0;j<n;j++){
      if(j>1)printf(" ");
      printf("%d",m[i][j]);
    }
    printf("\n");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:12: error: 'v' undeclared (first use in this function)
   17 |       m[i][v]=1;
      |            ^
main.c:17:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>


int main() {

   int m[n][n];
   int n, s, t, u, I,  j;

   scanf("%d", &n);
   for ( i = 0; i = n; i++) {
      for ( j = 0; j < n; j++) {
         m[i][j] = 0;
      }
   }

   for ( i = 0; i < n; i++) {
      scanf("%d", &s);
      scanf("%d", &t);
      for ( j = 0; j < k; j++) {
         scanf("%d", &u);
         m[s - 1][u - 1] = 1;
       }
   }
   for ( i = 0; i < n; i++) {
      for ( j = 0; j < n; j++) {
      printf("%d", m[i][j]);
      if ( j < n - 1) {
         printf(" ");
         }
      printf("?\n");
      }
      return 0;
   }
    

Compiler output:
main.c: In function 'main':
main.c:6:10: error: 'n' undeclared (first use in this function)
    6 |    int m[n][n];
      |          ^
main.c:6:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:10: error: 'i' undeclared (first use in this function)
   10 |    for ( i = 0; i = n; i++) {
      |          ^
main.c:19:24: error: 'k' undeclared (first use in this function)
   19 |       for ( j = 0; j < k; j++) {
      |                        ^
main.c:33:4: error: expected declaration or statement at end of input
   33 |    }
      |    ^
Language: C

#include <stdio.h>


int main() {

   int m[100][100];
   int n, s, t, u, I,  j;

   scanf("%d", &n);
   for ( i = 0; i = n; i++) {
      for ( j = 0; j < n; j++) {
         m[i][j] = 0;
      }
   }

   for ( i = 0; i < n; i++) {
      scanf("%d", &s);
      scanf("%d", &t);
      for ( j = 0; j < t; j++) {
         scanf("%d", &u);
         m[s - 1][u - 1] = 1;
       }
   }
   for ( i = 0; i < n; i++) {
      for ( j = 0; j < n; j++) {
      printf("%d", m[i][j]);
      if ( j < n - 1) {
         printf(" ");
         }
      printf("?\n");
      }
      return 0;
   }
    

Compiler output:
main.c: In function 'main':
main.c:10:10: error: 'i' undeclared (first use in this function)
   10 |    for ( i = 0; i = n; i++) {
      |          ^
main.c:10:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:33:4: error: expected declaration or statement at end of input
   33 |    }
      |    ^
Language: C

#include <stdio.h>


int main() {

   int m[100][100];
   int n, s, t, u, I,  j;

   scanf("%d", &n);
   for ( i = 0; i < n; i++) {
      for ( j = 0; j < n; j++) {
         m[i][j] = 0;
      }
   }

   for ( i = 0; i < n; i++) {
      scanf("%d", &s);
      scanf("%d", &t);
      for ( j = 0; j < t; j++) {
         scanf("%d", &u);
         m[s - 1][u - 1] = 1;
       }
   }
   for ( i = 0; i < n; i++) {
      for ( j = 0; j < n; j++) {
      printf("%d", m[i][j]);
      if ( j < n - 1) {
         printf(" ");
         }
      printf("?\n");
      }
      }
      return 0;
   }
    

Compiler output:
main.c: In function 'main':
main.c:10:10: error: 'i' undeclared (first use in this function)
   10 |    for ( i = 0; i < n; i++) {
      |          ^
main.c:10:10: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
#define N 100

int main(){

  int n, i, j, A[N][N], s, t, u;
 
  scanf("%d",&n);

  for ( i = 0; i < n; i++ ) {
    for ( j = 0; j < n; j++ ) {
      A[i][i] = 0;
    }
  }

  for ( i = 0; i < n; i++ ) {
    scanf("%d %d", &s, &t);
    for ( j = 0; j < t; j++ ) {
      scanf("%d",&u);
      A[s-1][u-1] = 1;
    }
  }

  for ( i = 0; i < n; i++ ) {
    for ( j = 0; j < n; j++ ) {
      if ( j != 0 ) printf("%d", A[i][j]):
    }
    printf("\n");
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:26:42: error: expected ';' before ':' token
   26 |       if ( j != 0 ) printf("%d", A[i][j]):
      |                                          ^
      |                                          ;
Language: C

#include<stdio.h>
#define N 100

int main(){

  int n, i, j, A[N][N], s, t, u;
 
  scanf("%d",&n);

  for ( i = 0; i < n; i++ ) {
    for ( j = 0; j < n; j++ ) {
      A[i][i] = 0;
    }
  }

  for ( i = 0; i < n; i++ ) {
    scanf("%d %d", &s, &t);
    for ( j = 0; j < t; j++ ) {
      scanf("%d",&u); 
      A[s-1][u-1] = 1;
    }
  }

  for ( i = 0; i < n; i++ ) {
    for ( j = 0; j < n; j++ ) {
      if ( j != 0 ) printf("%d", A[i][j]):
      printf("%d", A[i][j]);
    }
    printf("\n");
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:26:42: error: expected ';' before ':' token
   26 |       if ( j != 0 ) printf("%d", A[i][j]):
      |                                          ^
      |                                          ;