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

import java.util.Scanner;

public class ALDS1_11_A {
    private static final int N = 100;

    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int[][] m = new int[N][N];

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

        int u, k, v;
        for (int i = 0; i < n; i++) {
            u = scanner.nextInt();
            k = scanner.nextInt();
            for (int j = 0; j < k; j++) {
                v = scanner.nextInt();
                m[u-1][v-1] = 1;
            }
        }

        for (int i = 0; i < n; i++) {
            for (int j = 0; j < n; j++) {
                if (j != 0)
                    System.out.print(" ");
                System.out.print(m[i][j]);
            }
            System.out.print("\n");
        }
    }
}

Compiler output:
Main.java:3: error: class ALDS1_11_A is public, should be declared in a file named ALDS1_11_A.java
public class ALDS1_11_A {
       ^
1 error
Language: Java

import java.util.*;

public class Main{


	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int[][] e = new int[n+1][n+1];
		for(int i = 1; i <= n; i++){
			int u = scan.nextInt();
			int k = scan.nextInt();
			for(int j = 0; j < k; j++)
				int v = scan.nextInt();
				e[u][v] = 1;
		}

		for(int i = 1; i <= n; i++)
			for(int j = 1; j <= n; j++)
				if(j !=n)
					System.out.print(e[i][j] + " ");
				else
					System.out.println(e[i][j]);
	}
}

Compiler output:
Main.java:15: error: variable declaration not allowed here
				int v = scan.nextInt();
				    ^
1 error
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int size = scanner.nextInt();
		Graph[] graphs = new Graph[size]; 
		for (int i = 0; i < size; i++) {
			int id = scanner.nextInt();
			int num = scanner.nextInt();
			graphs[i] = new Graph(size);
			for (int j = 0; j < num; j++) {
				graphs[i].tmpElement(scanner.nextInt() - 1);
			}
		}
		
		for (Graph graph : graphs) {
			System.out.println(graph.print());
		}
	}
}
public class Graph {
	/** ?????????????????????????????§?????? */
	public int[] iArrays;
	
	/** ??°??????????????¨???StringBuilder??§?????? */
	StringBuilder stringBuilder = new StringBuilder();
	
	public Graph(int size) {
		iArrays = new int[size];
		for (int i = 0; i < size; i++) {
			iArrays[i] = 0;
		}
	}
	
	/** ????´??????\??????????????? */
	public void tmpElement(int e) {
		iArrays[e] = 1;
	}
	
	/** ??°??????????????????????????? */
	public String print() {
		int i = 0;
		for (i = 0; i < iArrays.length - 1; i++) {
			stringBuilder.append(iArrays[i] + " ");
		}
		stringBuilder.append(iArrays[i]);
		return stringBuilder.toString();
	}
}

Compiler output:
Main.java:23: error: class Graph is public, should be declared in a file named Graph.java
public class Graph {
       ^
1 error
Language: Java

import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;

public class Main{
    //directed graph
    LinkedList<Integer> adg[];
    Main(int n){
        adg = new LinkedList[n+1];
        for(int i = 0; i<=n; i++){
            adg[i] = new LinkedList<>();
        }
    }
    void addEdge(int index, int vertex){
        adg[index].add(vertex);
    }

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        Maingraph = new Main(n);
        for(int i = 0; i<n; i++){
            int index = in.nextInt();
            int m = in.nextInt();
            for(int j = 0; j<m; j++){
                int temp = in.nextInt();
                graph.addEdge(index,temp);
            }
        }
        //change to matrix
        int[][] matrix = new int[n+1][n+1];
        for(int i = 1; i<=n; i++){
            if(graph.adg[i].size()!=0) {
                for (int c : graph.adg[i]) {
                    matrix[i][c] = 1;
                }
            }
        }
        for(int i = 1; i<=n; i++){
            for(int j = 1; j<=n; j++){
                if(j!=n) System.out.print(matrix[i][j]+ " ");
                else System.out.print(matrix[i][j]);
            }
            System.out.println();
        }

    }
}


Compiler output:
Main.java:21: error: cannot find symbol
        Maingraph = new Main(n);
        ^
  symbol:   variable Maingraph
  location: class Main
Main.java:27: error: cannot find symbol
                graph.addEdge(index,temp);
                ^
  symbol:   variable graph
  location: class Main
Main.java:33: error: cannot find symbol
            if(graph.adg[i].size()!=0) {
               ^
  symbol:   variable graph
  location: class Main
Main.java:34: error: cannot find symbol
                for (int c : graph.adg[i]) {
                             ^
  symbol:   variable graph
  location: class Main
Note: Main.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
Language: Java

import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;

public class Main{
    //directed graph
    LinkedList<Integer> adg[];
    Main(int n){
        adg = new LinkedList[n+1];
        for(int i = 0; i<=n; i++){
            adg[i] = new LinkedList<>();
        }
    }
    void addEdge(int index, int vertex){
        adg[index].add(vertex);
    }

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        Main = new Main(n);
        for(int i = 0; i<n; i++){
            int index = in.nextInt();
            int m = in.nextInt();
            for(int j = 0; j<m; j++){
                int temp = in.nextInt();
                graph.addEdge(index,temp);
            }
        }
        //change to matrix
        int[][] matrix = new int[n+1][n+1];
        for(int i = 1; i<=n; i++){
            if(graph.adg[i].size()!=0) {
                for (int c : graph.adg[i]) {
                    matrix[i][c] = 1;
                }
            }
        }
        for(int i = 1; i<=n; i++){
            for(int j = 1; j<=n; j++){
                if(j!=n) System.out.print(matrix[i][j]+ " ");
                else System.out.print(matrix[i][j]);
            }
            System.out.println();
        }

    }
}


Compiler output:
Main.java:21: error: cannot find symbol
        Main = new Main(n);
        ^
  symbol:   variable Main
  location: class Main
Main.java:27: error: cannot find symbol
                graph.addEdge(index,temp);
                ^
  symbol:   variable graph
  location: class Main
Main.java:33: error: cannot find symbol
            if(graph.adg[i].size()!=0) {
               ^
  symbol:   variable graph
  location: class Main
Main.java:34: error: cannot find symbol
                for (int c : graph.adg[i]) {
                             ^
  symbol:   variable graph
  location: class Main
Note: Main.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
Language: Java

import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;

public class Main{
    //directed graph
    List<Integer> adg[];
    GraphAizu(int n){
        adg = new LinkedList[n+1];
        for(int i = 0; i<=n; i++){
            adg[i] = new LinkedList<>();
        }
    }
    void addEdge(int index, int vertex){
        adg[index].add(vertex);
    }

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        Main graph = new Main(n);
        for(int i = 0; i<n; i++){
            int index = in.nextInt();
            int m = in.nextInt();
            for(int j = 0; j<m; j++){
                int temp = in.nextInt();
                graph.addEdge(index,temp);
            }
        }
        //change to matrix
        int[][] matrix = new int[n+1][n+1];
        for(int i = 1; i<=n; i++){
            if(graph.adg[i].size()!=0) {
                for (int c : graph.adg[i]) {
                    matrix[i][c] = 1;
                }
            }
        }
        for(int i = 1; i<=n; i++){
            for(int j = 1; j<=n; j++){
                if(j!=n) System.out.print(matrix[i][j]+ " ");
                else System.out.print(matrix[i][j]);
            }
            System.out.println();
        }

    }
}



Compiler output:
Main.java:8: error: invalid method declaration; return type required
    GraphAizu(int n){
    ^
1 error
Language: Java

import java.io.InputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.InputMismatchException;
import java.util.NoSuchElementException;
import java.util.PriorityQueue;
     
public class Graph{
    
    static InputReader ir;
    static PrintWriter out;

    static void solve(){
	int n=ir.nextInt();
	int[][] a=new int[n][n];
	for(int i=0;i<n;i++){
	    int u=ir.nextInt()-1;
	    int k=ir.nextInt();
	    int[] v=ir.nextIntArray(k);
	    for(int j=0;j<k;j++){
		a[u][--v[j]]^=1;
	    }
	}
	for(int i=0;i<n;i++){
	    for(int j=0;j<n;j++){
		if(j==n-1)
		    out.println(a[i][j]);
		else
		    out.print(a[i][j]+" ");
	    }
	}
    }

    public static void main(String[] args) throws Exception {
	ir = new InputReader(System.in);
     	out = new PrintWriter(System.out);
	solve();
	out.flush();
     }
 
    static class InputReader {
	private InputStream in;
	private byte[] buffer=new byte[1024];
	private int curbuf;
	private int lenbuf;

	public InputReader(InputStream in) {this.in=in; this.curbuf=this.lenbuf=0;}
   
	public boolean hasNextByte() {
	    if(curbuf>=lenbuf){
		curbuf= 0;
		try{
		    lenbuf=in.read(buffer);
		}catch(IOException e) {
		    throw new InputMismatchException();
		}
		if(lenbuf<=0) return false;
	    }
	    return true;
	}
  
	private int readByte(){if(hasNextByte()) return buffer[curbuf++]; else return -1;}
 
	private boolean isSpaceChar(int c){return !(c>=33&&c<=126);}
  
	private void skip(){while(hasNextByte()&&isSpaceChar(buffer[curbuf])) curbuf++;}
 
	public boolean hasNext(){skip(); return hasNextByte();}
  
	public String next(){
	    if(!hasNext()) throw new NoSuchElementException();
	    StringBuilder sb=new StringBuilder();
	    int b=readByte();
	    while(!isSpaceChar(b)){
		sb.appendCodePoint(b);
		b=readByte();
	    }
	    return sb.toString();
	}
  
	public int nextInt() {
	    if(!hasNext()) throw new NoSuchElementException();
	    int c=readByte();
	    while (isSpaceChar(c)) c=readByte();
	    boolean minus=false;
	    if (c=='-') {
		minus=true;
		c=readByte();
	    }
	    int res=0;
	    do{
		if(c<'0'||c>'9') throw new InputMismatchException();
		res=res*10+c-'0';
		c=readByte();
	    }while(!isSpaceChar(c));
	    return (minus)?-res:res;
	}
  
	public long nextLong() {
	    if(!hasNext()) throw new NoSuchElementException();
	    int c=readByte();
	    while (isSpaceChar(c)) c=readByte();
	    boolean minus=false;
	    if (c=='-') {
		minus=true;
		c=readByte();
	    }
	    long res = 0;
	    do{
		if(c<'0'||c>'9') throw new InputMismatchException();
		res=res*10+c-'0';
		c=readByte();
	    }while(!isSpaceChar(c));
	    return (minus)?-res:res;
	}
  
	public double nextDouble(){return Double.parseDouble(next());}
  
	public int[] nextIntArray(int n){
	    int[] a=new int[n];
	    for(int i=0;i<n;i++)
		a[i]=nextInt();
	    return a;
	}
  
	public char[][] nextCharMap(int n,int m){
	    char[][] map=new char[n][m];
	    for(int i=0;i<n;i++)
		map[i]=next().toCharArray();
	    return map;
	}
    }
}



Compiler output:
Main.java:8: error: class Graph is public, should be declared in a file named Graph.java
public class Graph{
       ^
1 error
Language: Java

import java.util.*;
public class Graph{
    public static void main(String[] args){
	Scanner sc=new Scanner(System.in);
	int n=sc.nextInt();
	int u,k;
	int[][] a=new int[n][n];
	for(int i=0;i<n;i++){
	    u=sc.nextInt();
	    k=sc.nextInt();
	    int[] v=new int[k];
	    for(int j=0;j<k;j++){
		v[j]=sc.nextInt();
		a[i][v[j]-1]=1;
	    }
	}
	for(int i=0;i<n;i++){
	    for(int j=0;j<n;j++){
		if(j!=n-1){
		    System.out.print(a[i][j]+" ");
		}else{
		    System.out.println(a[i][j]);
		}
	    }
	}
    }
}


Compiler output:
Main.java:2: error: class Graph is public, should be declared in a file named Graph.java
public class Graph{
       ^
1 error
Language: C

#include <stdio.h>

int Matrix[100][100];

int main(){
    int N, u, k, temp;
    for (int ix = 0; ix < N; ix++)
        for (int jx = 0; jx < N; jx++)
            Matrix[ix][jx] = 0;
    
    scanf("%d\n",&N);
    for (int ix = 0 ; ix < N; ix++){
        scanf("%d %d",&u,&k);
        if ( k != 0 ){
            for (int kx = 0 ; kx < k; kx++){
                scanf("%d",&temp);
                Matrix[u]
            }
        }
        
    }
}


Compiler output:
main.c: In function 'main':
main.c:17:26: error: expected ';' before '}' token
   17 |                 Matrix[u]
      |                          ^
      |                          ;
   18 |             }
      |             ~
Language: C

#include <stdio.h>

int Map[100][100];
void print(int N){
    for (int ix = 0; ix < N; ix++)
        for (int jx = 0; jx < N; jx++){
            if (jx != N-1) printf("%d ",Map[ix][jx]);
            else printf("%d\n",Map[ix][jx]);
        }
}

int main(){
    int N, u, k, temp;
    scanf("%d\n",&N);
    for (int ix = 0; ix < N; ix++)
        for (int jx = 0; jx < N; jx++)
            Map[ix][jx] = 0;
            
    for (int ix = 0; ix < N; ix++){
        scanf("%d%d",&u,&k);
        if (k != 0){
            for (int kx = 0; kx < k; kx++)
                scanf("%d",&temp);
                Map[u-1][temp-1] = 1;
        }
    print(N);
    return 0;
}


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

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

int 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>

int main(){
  int i,j,n,k,l,h,A[100][100];

  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",&k,&l);
    for(j=0j<l;j++){
      scanf("%d",&h);
      A[k-1][h-1]=1;
    }
  }

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

 return 0;
  
}




Compiler output:
main.c: In function 'main':
main.c:16:13: error: invalid operands to binary < (have 'complex int' and 'int')
   16 |     for(j=0j<l;j++){
      |             ^
main.c:16:19: error: expected ';' before ')' token
   16 |     for(j=0j<l;j++){
      |                   ^
      |                   ;
Language: C

#include<stdio.h>
#define N 100

int main()
{
  int i,j,n,p,q,r,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",&p,&q);
    for(j=0; j<q; j++){
      scanf("%d",&r);
      A[p-1][t-1] = 1;
    }
  }
   for(i=0; i<n; i++){
    for(j=0; j<n; j++){
      if(j)printf(" ");
      printf("%d",A[i][j]);
    }
    printf("\n");
   }
   return 0;
}



Compiler output:
main.c: In function 'main':
main.c:18:14: error: 't' undeclared (first use in this function)
   18 |       A[p-1][t-1] = 1;
      |              ^
main.c:18:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#define rep(i, n) for(int i = 0; i < n; ++i)

int main(void) {
  int n, i, j;
  scanf("%d", &n);
  char r[n][n];
  rep(i, n) rep(j, n) r[i][j] = 0;
  rep(i, n) {
    int u, k;
    scanf("%d%d", &u, &k);
    u--;
    rep(j, k) {
      int v;
      scanf("%d", &v);
      v--;
      r[u][v] = 1;
    }
  }
  rep(i, n) {
    rep(j, n - 1) printf("%d ", r[i][j]);
    printf("%d\n", r[i][n - 1]);
  }
  return 0;


Compiler output:
main.c: In function 'main':
main.c:24:3: error: expected declaration or statement at end of input
   24 |   return 0;
      |   ^~~~~~
Language: C

#include<stdio.h>
#pragma warning(disable:4996)
int main() {
	int n = 0;
	scanf("%d", &n);
	int **arr = new int*[n];
	for (int i = 0; i < n; i++) {
		arr[i] = new int[n];
	}
	for (int i = 0; i < n; i++) {
		for (int j = 0; j < n; j++) {
			arr[i][j] = { 0 };
		}
		
	}
	for (int i = 0; i < n; i++) {
		int k = 0,l=0,g=0;
		scanf("%d", &k);
		scanf("%d", &l);
		for (int j = 0; j < l; j++) {
			scanf("%d", &g);
			arr[k - 1][g - 1] = 1;
		}
	}
	
	for (int i = 0; i < n; i++) {
		for (int j = 0; j < n; j++) {
			printf("%d", arr[i][j]);
			if (j != n - 1) printf(" ");
		}
		printf("\n");
	}
	delete[](arr);
}


Compiler output:
main.c: In function 'main':
main.c:6:21: error: 'new' undeclared (first use in this function)
    6 |         int **arr = new int*[n];
      |                     ^~~
main.c:6:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:25: error: expected ',' or ';' before 'int'
    6 |         int **arr = new int*[n];
      |                         ^~~
main.c:8:29: error: expected ';' before 'int'
    8 |                 arr[i] = new int[n];
      |                             ^~~~
      |                             ;
main.c:12:37: error: expected expression before '{' token
   12 |                         arr[i][j] = { 0 };
      |                                     ^
main.c:33:9: error: 'delete' undeclared (first use in this function)
   33 |         delete[](arr);
      |         ^~~~~~
main.c:33:16: error: expected expression before ']' token
   33 |         delete[](arr);
      |                ^
Language: C

#include <stdio.h>
#include <stdlib.h>
#pragma warning(disable:4996)

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

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


Compiler output:
main.c: In function 'main':
main.c:8:9: error: unknown type name 'bool'
    8 |         bool adj[100][100] = { 0 };
      |         ^~~~
main.c:3:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    2 | #include <stdlib.h>
  +++ |+#include <stdbool.h>
    3 | #pragma warning(disable:4996)
main.c:16:37: error: 'true' undeclared (first use in this function)
   16 |                         adj[u][v] = true;
      |                                     ^~~~
main.c:16:37: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:16:37: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

#define u 101

int main(){
  int i,n,ans,k,j,u_number,iranai;
  int Adj[u][u];
  
  for(i=0;i<u;i++){
    for(j=0;j<u;j++){
      Adj[i][j]=0;
    }
  }

  scanf("%d",&n);
  
  for(i=1;i<=n;i++){
    scanf("%d",&iranai);
    scanf("%d",&k);
    for(j=1;j<=k;j++){
      scanf("%d",&u_number);
      Adj[i][u_number]=1;
    }
  }
  
  for(i=1;i<=n;i++){
    printf("%d", Adj[i][0]);
    for(j=2;j<=n;j++){
    printf(" %d",Adj[i][j]);
    }
    printf("\n");
  }
  return 0;

Compiler output:
main.c: In function 'main':
main.c:33:3: error: expected declaration or statement at end of input
   33 |   return 0;
      |   ^~~~~~
Language: C

#include<stdio.h>

#define u 101

int main(){
  int i,n,ans,k,j,u_number,iranai;
  int Adj[u][u];
  
  for(i=0;i<u;i++){
    for(j=0;j<u;j++){
      Adj[i][j]=0;
    }
  }

  scanf("%d",&n);
  
  for(i=1;i<=n;i++){
    scanf("%d",&iranai);
    scanf("%d",&k);
    for(j=1;j<=k;j++){
      scanf("%d",&u_number);
      Adj[i][u_number]=1;
    }
  }
  
  for(i=1;i<=n;i++){
    printf("%d", Adj[i][1]);
    for(j=2;j<=n;j++){
    printf(" %d",Adj[i][j]);
    }
    printf("\n");
  }
  return 0;

Compiler output:
main.c: In function 'main':
main.c:33:3: error: expected declaration or statement at end of input
   33 |   return 0;
      |   ^~~~~~
Language: C

#include <stdio.h>

#define N 100

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

  scanf("%d", &n);
  
  if(n < 100){
    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[j]);
	a[u][v[j]] = 1;
      }
    }
    
    for(i = 1; i <= n; i++){
      for(j = 1; j <= n; j++){
	printf("%d", a[i][j]);
	
	if(j != n)printf(" ");
      }
      
      printf("\n");
    }
  }

  else printf("Too Large\n")
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:39:29: error: expected ';' before 'return'
   39 |   else printf("Too Large\n")
      |                             ^
      |                             ;
   40 | 
   41 |   return 0;
      |   ~~~~~~
Language: C

#include <stdio.h>
#define N 100


main(){

  int n,u,k,ad[N][N],i,j,v;


  scanf("%d",&n);

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

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

      scanf("%d",&v)

	ad[u-1][v-1]=1;

    }

  }

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

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

      if(ad[i][j]==1)
	printf("1");
      else
	printf("0");

      printf(" ");

    }

    printf("\n");

  }

return 0;

}

Compiler output:
main.c:5:1: error: return type defaults to 'int' [-Wimplicit-int]
    5 | main(){
      | ^~~~
main.c: In function 'main':
main.c:18:21: error: expected ';' before 'ad'
   18 |       scanf("%d",&v)
      |                     ^
      |                     ;
   19 | 
   20 |         ad[u-1][v-1]=1;
      |         ~~
Language: C

#include<stdio.h>
define Max
int main(void)
{
  int num1,num2,len,num3,i,j,number[100][100];//len,num1,num2,num3,number[100][1001];
  for(i = 1; i <=100; i++){// 
      for(j = 1; j <=100; j++)
	number[i][j] = 0;
  }
  scanf("%d", &len);
  for(i=0;i<len;i++){
    scanf("%d",&num1);
      scanf("%d",&num2);
      for(j = 0; j < num2; j++){
	scanf("%d", &num3);
	number[num1][num3] = 1;
      }
  }
  for(i = 1; i <= len; i++){
        for(j = 1; j < len; j++)
	  printf("%d ", number[i][j]);
        printf("%d\n", number[i][j]);
  }
  return 0;
}

Compiler output:
main.c:2:1: error: unknown type name 'define'
    2 | define Max
      | ^~~~~~
main.c:2:11: error: expected ';' before 'int'
    2 | define Max
      |           ^
      |           ;
    3 | int main(void)
      | ~~~
Language: C

#include<stdio.h>
#define MAX
int main(int argc, char* argv[])
{
  int num1,num2,len,num3,i,j,number[MAX][MAX+1];//len,num1,num2,num3,number[100][1001];
  for(i = 1; i <=MAX; i++){// 
      for(j = 1; j <=MAX; j++)
	number[i][j] = 0;
  }
  scanf("%d", &len);
  for(i=0;i<len;i++){
    scanf("%d",&num1);
      scanf("%d",&num2);
      for(j = 0; j < num2; j++){
	scanf("%d", &num3);
	number[num1][num3] = 1;
      }
  }
  for(i = 1; i <= len; i++){
        for(j = 1; j < len; j++)
	  printf("%d ", number[i][j]);
        printf("%d\n", number[i][j]);
  }
  return (0);
}

Compiler output:
main.c: In function 'main':
main.c:5:30: error: array size missing in 'number'
    5 |   int num1,num2,len,num3,i,j,number[MAX][MAX+1];//len,num1,num2,num3,number[100][1001];
      |                              ^~~~~~
main.c:6:21: error: expected expression before ';' token
    6 |   for(i = 1; i <=MAX; i++){//
      |                     ^
Language: C

#include <stdio.h>

main(){

  int i, j, n, m;
  int e[101][101];

  scanf("%d", &n);

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

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

  }

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

  return 0;

}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:18:20: error: 'l' undeclared (first use in this function)
   18 |       scanf("%d", &l);
      |                    ^
main.c:18:20: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
#define MAX 5000
void cal(void);
int ten;
int v[MAX][MAX];

main(){
  int a,b,k,i,j,p,q;
 
  scanf("%d",&ten);
  for(i = 0;i < ten;i++){
    scanf("%d%d",&q,&p);
    for(j = 0;j < p;j++){
    scanf("%d",&b);
    v[q-1][b-1] = 1;
    }
    }
  cal();
  
}dcsd

void cal(void){
  int i;
  int j;
for(i = 0;i < ten;i++){
    for(j = 0;j <ten-1; j++){
      printf("%d ",v[i][j]);
    }
    printf("%d\n",v[i][j]);
  }
}

Compiler output:
main.c:7:1: error: return type defaults to 'int' [-Wimplicit-int]
    7 | main(){
      | ^~~~
main.c:20:6: error: expected ';' before 'void'
   20 | }dcsd
      |      ^
      |      ;
   21 | 
   22 | void cal(void){
      | ~~~~
Language: C

#include<stdio.h>

int main(){
  int n,m,s,t,i,j;
  scanf("%d",&n);
  int Adj[n][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",&t,&m);
    for(j = 0;j < m;j++){
      scanf("%d",&s);
      Adj[t-1][s-1] = 1;
    }
 }
 
 for(i = 0;i < n;i++){
   for(j = 0;j < n;j++){
     if(j != 0){
       printf(" ");
     }
     printf("%d",Adj[i][j]);
   }
   printf("\n");
 }
 
 return 0;

Compiler output:
main.c: In function 'main':
main.c:32:2: error: expected declaration or statement at end of input
   32 |  return 0;
      |  ^~~~~~
Language: C

#include<stdio.h>

int A[100][100];

int main(void){
  int n,m,l,i,j,k;

  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",&m,&l);
    for(j=0;j<l;j++){
      scanf("%d",&k);
      A[i][k-1]=1;
    }
  }
  
  for(i=0;i<n;i++){
    for(j=0;j<n-1;j++){
      printf("%d ",A[i][j]);
    }
      printf("%d\n"A[i][j]);

  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:27:20: error: expected ')' before 'A'
   27 |       printf("%d\n"A[i][j]);
      |             ~      ^
      |                    )
Language: C

#include<stdio.h>
#define N 100
 
main(){
  int i,j,m[N][N],n,l,u,s;
  scanf("%d",&u);
  for(i=0;i<u;i++){
    for(j=0;j<u;j++){
      m[i][j]=0;
    }
  }
 
  for(i=0;i<b;i++){
    scanf("%d %d",&n,&l);
    n--;
    for(j=0;j<l;j++){
      scanf("%d",&s);
      s--;
      m[n][s]=1;
    }
  }
  for(i=0;i<u;i++){
    for(j=0;j<u-1;j++){
      printf("%d ",m[i][j]);
    }
    printf("%d",m[i][u-1]);
    printf("\n");
  }
   
   
 return 0;
}

Compiler output:
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int]
    4 | main(){
      | ^~~~
main.c: In function 'main':
main.c:13:13: error: 'b' undeclared (first use in this function)
   13 |   for(i=0;i<b;i++){
      |             ^
main.c:13:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#define N 101XS

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

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

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

  for( i=1 ; i<=n ; i++ ){
    for( j=1 ; j<=n ; j++){

      if( j == n )printf("%d",Adj[i][j]);
      else printf("%d ",Adj[i][j]);
    }
    printf("\n");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:2:11: error: invalid suffix "XS" on integer constant
    2 | #define N 101XS
      |           ^~~~~
main.c:6:11: note: in expansion of macro 'N'
    6 |   int Adj[N][N];
      |           ^
main.c:2:11: error: invalid suffix "XS" on integer constant
    2 | #define N 101XS
      |           ^~~~~
main.c:6:14: note: in expansion of macro 'N'
    6 |   int Adj[N][N];
      |              ^
Language: C

#include <iostream>
using namespace std;
 
int n, u, k, v;
int G[101][101] = {0};
 
int main() {
    cin >> n;
    for (int i=0; i<n; ++i) {
        cin >> u >> k;
        while (k --) {
            cin >> v;
            G[u][v] = 1;
        }
    }
    for (int i=1; i<=n; ++i) {
        for (int j=1; j<=n; ++j) {
            cout << (j==1 ? "" : " ") << G[i][j];
        }
        cout << endl;
    }
    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 M[N][N];
 int a,b,c,d;
 int i,j;
 
 scanf("%d",&a);
 
 for( i = 0 ; i < a ; i++){
  for( j = 0 ; j < a ; j++){
    M[i][j]=0;
  }
 }
 
 for( i = 0 ; i < a ; i++ ){
   scanf("%d%d",&b,&c);
   b--;
   for( j = 0 ; j < c ; j++){
     scanf("%d",d);
     d--;
     M[b][d] = 1;
   }
 }

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

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

#include<stdio.h>


int  N =100

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

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

Compiler output:
main.c:6:1: error: expected ',' or ';' before 'int'
    6 | int main(){
      | ^~~
Language: C

#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#include <math.h>
#define MAX_INP (100)
#define MAX_DEG (100)

//#define TEST

typedef struct {
	int deg;
	int data[MAX_DEG];
//	unsigned long data;
} TAG_T;

TAG_T graph[MAX_INP];
int n,u,k;

/**------------ SUB ROUTIONE -------------*/
int get_idx(int set_dt,int *idx_p,int *wk_p)
{
	if (set_dt <= 0) {
		printf("ERROR\n");
		return -1;
	}


	*idx_p = (set_dt-1) / 32;
	*wk_p  = set_dt % 32;
//	*wk_p  = set_dt - (*idx_p * 32) - 1;
	if (*wk_p < 0) {
		printf("ERROR1\n");
		return -1;
	}
	if (*idx_p > 3) {
		printf("ERROR2\n");
		return -2;
	}
	return 0;
}
int bit_set(unsigned long *bitmap_p , int setdt)
{
	int idx;
	int wk;
	int rtn;

	if ((rtn=get_idx(setdt,&idx,&wk)) != 0) {
		printf("ERROR 3\n");
		return rtn;
	}
	bitmap_p[idx] |= 1 << (wk-1);
	return 0;
}

int bit_cmp(unsigned long *bitmap_p , int cmpdt)
{
	int idx;
	int wk;
	int rtn;

	if ((rtn=get_idx(cmpdt,&idx,&wk)) != 0) {
		printf("ERROR 4\n");
		return rtn;
	}
	if (((bitmap_p[idx] >> (wk-1)) & 1) != 0) {
		return 1;
	}
	else {
		return 0;
	}
}
/**------------ SUB ROUTIONE -------------*/

void test()
{
	unsigned long data[4];
	int dt;
	int rtn;

	while (1) {
		memset(data,'\0',sizeof(data));
		printf("Input=");
		scanf("%d",&dt);
		bit_set(data,dt);
		printf("bit_set() data[0 1 2 3]=0x%08x 0x%08x 0x%08x 0x%08x\n",data[0],data[1],data[2],data[3]);

		rtn = bit_cmp(data,dt);
		printf("bit_cmp() rtn=%d\n",rtn);
	}
}

int main()
{
	int i,l,v;
	int wk;
	unsigned long data[4];
	char inp[128];
	char *wk_p;
	char *dmy_p;
#ifdef TEST
	test();
#else

	/** INIT **/
	n=u=k=0;

	/** INPUT **/
	gets(inp);
	sscanf_s(inp,"%d",&n);

	/***************/
	/*--- n     ---*/
	/***************/
	for (i=0 ; i<n ; i++) {
		gets(inp);
		wk_p = strtok(inp, " ");
		sscanf_s(wk_p,"%d",&u); //???????????????
		wk_p = strtok(NULL, " ");
		sscanf(wk_p,"%d",&k); //????¬???°
		graph[i].deg = k;
//		graph[i].data= 0;
		wk_p = strtok(NULL, " ");
		for (l=0 ; l<k ; l++) {
			sscanf(wk_p,"%d",&v);
			graph[i].data[l] = v;
//			graph[i].data |= 1 << (v-1);
			wk_p = strtok(NULL, " ");
		}

	}


	/*CALC*/
	for (i=0 ; i<n ; i++) {
		k = graph[i].deg;
		data[0]=data[1]=data[2]=data[3]=0;
		for (l=0 ; l<k ; l++) {
			wk = graph[i].data[l];
//			data |= 1 << (wk-1);
			bit_set(data,wk);
		}
		k = n;
		for (l=0 ; l<k ; l++) {
//			wk = (graph[i].data >> l) & 1;
			wk = bit_cmp(data,l+1);
//			if (((data >> l) & 0x00000001) != 0) {
			if (wk != 0) {
				printf("1");
			}
			else {
				printf("0");
			}
			if (l!=(k-1)) {
				printf(" ");
			}
		}
		printf("\n");
	}
	return 0;
#endif
}

Compiler output:
main.c: In function 'main':
main.c:109:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
  109 |         gets(inp);
      |         ^~~~
      |         fgets
main.c:110:9: error: implicit declaration of function 'sscanf_s'; did you mean 'sscanf'? [-Wimplicit-function-declaration]
  110 |         sscanf_s(inp,"%d",&n);
      |         ^~~~~~~~
      |         sscanf
Language: C


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

Compiler output:
main.c:3:9: error: 'MAX' undeclared here (not in a function)
    3 |   int A[MAX][MAX];
      |         ^~~
main.c:4:9: error: expected declaration specifiers or '...' before string constant
    4 |   scanf("%d",&n);
      |         ^~~~
main.c:4:14: error: expected declaration specifiers or '...' before '&' token
    4 |   scanf("%d",&n);
      |              ^
main.c:6:3: error: expected identifier or '(' before 'for'
    6 |   for(i = 1; i < n + 1; i++)
      |   ^~~
main.c:6:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    6 |   for(i = 1; i < n + 1; i++)
      |                ^
main.c:6:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    6 |   for(i = 1; i < n + 1; i++)
      |                          ^~
main.c:13:2: error: expected identifier or '(' before 'for'
   13 |  for(i = 1;i < n+1; i++)
      |  ^~~
main.c:13:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   13 |  for(i = 1;i < n+1; i++)
      |              ^
main.c:13:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   13 |  for(i = 1;i < n+1; i++)
      |                      ^~
main.c:25:2: error: expected identifier or '(' before 'for'
   25 |  for(i = 1; i < n + 1; i++)
      |  ^~~
main.c:25:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   25 |  for(i = 1; i < n + 1; i++)
      |               ^
main.c:25:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   25 |  for(i = 1; i < n + 1; i++)
      |                         ^~
main.c:34:1: error: expected identifier or '(' before 'return'
   34 | return 0;
      | ^~~~~~
main.c:35:1: error: expected identifier or '(' before '}' token
   35 | }
      | ^
Language: C

#include <stdio.h>

int main(){

  int i,j,m,n,n2,G[100][100];

  scanf("%d",&n);

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

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

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:28:18: error: expected ')' before 'G'
   28 |     printf("%d\n"G[i][n]);
      |           ~      ^
      |                  )
Language: C


  int M[100][100];
  int n, n1, n2, n3; 
  int i, j;

  scanf("%d",&n);

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

Compiler output:
main.c:6:9: error: expected declaration specifiers or '...' before string constant
    6 |   scanf("%d",&n);
      |         ^~~~
main.c:6:14: error: expected declaration specifiers or '...' before '&' token
    6 |   scanf("%d",&n);
      |              ^
main.c:8:3: error: expected identifier or '(' before 'for'
    8 |   for ( i = 1; i <=n; i++ )
      |   ^~~
main.c:8:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
    8 |   for ( i = 1; i <=n; i++ )
      |                  ^~
main.c:8:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    8 |   for ( i = 1; i <=n; i++ )
      |                        ^~
main.c:16:3: error: expected identifier or '(' before 'for'
   16 |   for ( i = 1; i <= n; i++ )
      |   ^~~
main.c:16:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
   16 |   for ( i = 1; i <= n; i++ )
      |                  ^~
main.c:16:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   16 |   for ( i = 1; i <= n; i++ )
      |                         ^~
main.c:28:3: error: expected identifier or '(' before 'for'
   28 |   for ( i = 1; i <= n ; i++ )
      |   ^~~
main.c:28:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
   28 |   for ( i = 1; i <= n ; i++ )
      |                  ^~
main.c:28:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   28 |   for ( i = 1; i <= n ; i++ )
      |                          ^~
main.c:37:3: error: expected identifier or '(' before 'return'
   37 |   return 0;
      |   ^~~~~~
main.c:38:1: error: expected identifier or '(' before '}' token
   38 | }
      | ^
Language: C

#include<stdio.h>

int main()
{
int n,k,v,i,j,bv[100][100],u[100];
scanf("%d",&n);

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

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


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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:36:13: error: expected ')' before 'bv'
   36 | printf("%d "bv[i][j]);
      |       ~     ^~
      |             )
Language: C

#include<stdio.h>

int main()
{
  int i,j,n,u,k,l;
  int adj[101][101];

  for(i=0; i<n; i++) 
    for(j=0; j<n; j++)
      adj[i][j] = 0;

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

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

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




#include<stdio.h>
#define  n 101

int main(){
  int G[n][n];
  int i , j ,a,b,c,d;
  scanf("%d",&d);
  for(i=0;i<d;i++){
    for(j=0;j<d;j++){
      G[i][j]=0;
    }
  }
  for(i=0;i<d;i++){
    scanf("%d%d",&a,&b);
    for(j=0;j<d;j++){
      scanf("%d",&c);
      G[i][s-1]=1;
    }
  }
  for(i=0;i<d;i++){
    for(j=0;j<d;j++){
      printf("%d",G[i][j]);
      if(j<d-1){
	printf(" ");
      }

      printf("\n");
    }

Compiler output:
main.c: In function 'main':
main.c:20:12: error: 's' undeclared (first use in this function)
   20 |       G[i][s-1]=1;
      |            ^
main.c:20:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:31:5: error: expected declaration or statement at end of input
   31 |     }
      |     ^
main.c:31:5: error: expected declaration or statement at end of input
Language: C

#include<stdio.h>
#define  n 101

int main(){
  int G[n][n];
  int i , j ,a,b,c,d;
  scanf("%d",&d);
  for(i=0;i<d;i++){
    for(j=0;j<d;j++){
      G[i][j]=0;
    }
  }
  for(i=0;i<d;i++){
    scanf("%d%d",&a,&b);
    for(j=0;j<d;j++){
      scanf("%d",&c);
      G[i][s-1]=1;
    }
  }
  for(i=0;i<d;i++){
    for(j=0;j<d;j++){
      printf("%d",G[i][j]);
      if(j<d-1){
	printf(" ");
      }
    }
      printf("\n");
    

  }
    return 0 ;
  
}

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

#include<stdio.h>
#define  n 101

int main(){
  int G[n][n];
  int i , j ,a,b,c,d;
  scanf("%d",&d);
  for(i#include<stdio.h>
#define  n 101

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


  }
    return 0 ;
}

Compiler output:
main.c: In function 'main':
main.c:8:8: error: stray '#' in program
    8 |   for(i#include<stdio.h>
      |        ^
main.c:8:8: error: expected ';' before 'include'
    8 |   for(i#include<stdio.h>
      |        ^~~~~~~~
      |        ;
main.c:40:1: error: expected declaration or statement at end of input
   40 | }
      | ^
Language: C

#include <stdio.h>

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

  int Adj[101][101];

  //number of vertices
  scanf("%d",&n);
  
  //adjacency list

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

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

    for(j=0;j<k;j++){
      
      //v1,v2,v3,.....vk
      scanf("%d",&v);
      
      Adj[u][v]=1;
    }
  }

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

#include<stdio.h>
#define N 100
int main(){
  int M[N][N];
  int i, j, u, n, 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:29:1: error: expected declaration or statement at end of input
   29 | }
      | ^
Language: C

include<stdio.h>
#define N 100
int main(){
  int M[N][N];
  int i, j, u, n, 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;
    }

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

#include<stdio.h>
#define N 100
int main(){
int M[N][N];
int i, j, k, u, v, n;
scant("%d",&n);
for(i=0;i<n;i++){
for(j=0;j<n;j++){
M[i][j]=0;
}
}
for(i=0;i<n;i++){
scant("%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:6:1: error: implicit declaration of function 'scant'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 | scant("%d",&n);
      | ^~~~~
      | scanf
Language: C

#include<stdio.h>
#define N 100

inr M[N][N];
 
int main(){
 
   
  int i,j,u,v,k,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",&u);
    scanf("%d",&k);
 
    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:4:1: error: unknown type name 'inr'; did you mean 'int'?
    4 | inr M[N][N];
      | ^~~
      | int
main.c:54:3: error: expected identifier or '(' before 'return'
   54 |   return 0;
      |   ^~~~~~
main.c:56:1: error: expected identifier or '(' before '}' token
   56 | }
      | ^
Language: C

#include<stdio.h>
#define N 100
int main(){
 
  int M[N][N];
  int i,j,u,v,k,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",&u);
    scanf("%d",&k);
 
    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:51:3: error: expected identifier or '(' before 'return'
   51 |   return 0;
      |   ^~~~~~
main.c:53:1: error: expected identifier or '(' before '}' token
   53 | }
      | ^
Language: C

#include<stdio.h>
#define N 100
int main(){
 
  int M[N][N];
  int i,j,u,v,k,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",&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:53:3: error: expected identifier or '(' before 'return'
   53 |   return 0;
      |   ^~~~~~
main.c:55:1: error: expected identifier or '(' before '}' token
   55 | }
      | ^
Language: C

#include<stdio>

int main(){
  int i,j,n1,n2,n3,n4[101[101],n5[101];

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

		      for(i=1;i<=n;i++){
			scanf("%d",&n5[i]);
			scanf("%d",&n2);



			if(n2==0)continue;

			else{
			  for(j=0;j<n2;j++){
			    scanf("%d",&n3);
			    n4[i][n3]=1; }}
		      }

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

		      return 0;
		      }

Compiler output:
main.c:1:9: fatal error: stdio: No such file or directory
    1 | #include<stdio>
      |         ^~~~~~~
compilation terminated.
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++) {
      printf("%d ",a[x][y]);
    }printf("\n");
  }

  return 0;
}

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