Language: C

#include<stdio.h>
#define N 101
  
main(){
   
  int M[N][N];
  int n,m,k,l,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",&m,&k);    
    for(j=0;j<k;j++){
      scanf("%d",&l);
      M[m][l]=1;      
    }
  }
      
  for(i=1;i<=n;i++){
    for(j=1;j<=n;j++){
      if(j==n){
    if(M[i][j]!=0) printf("1");
    else printf("0");
    break;    
      }
      
      if(M[i][j]!=0) printf("1 ");
      else printf("0 ");   
    }
    printf("\n");
 
  }
  return 0;
}

Compile Error Logs:
You are not authorized to see the message.

Status
Judge: 8/8	C	CPU: 00.00 sec	Memory: 620 KB	Length: 551 B	2015-07-06 12:42	2015-07-06 12:42
Results for testcases
Case #	Verdict	CPU Time	Memory	In	Out	Case Name
Case #1:	: Accepted	00.00 sec	596 KB	40 B	72 B	1.in
Case #2:	: Accepted	00.00 sec	592 KB	20 B	18 B	2.in
Case #3:	: Accepted	00.00 sec	596 KB	75 B	200 B	3.in
Case #4:	: Accepted	00.00 sec	592 KB	62 B	50 B	4.in
Case #5:	: Accepted	00.00 sec	596 KB	158 B	800 B	5.in
Case #6:	: Accepted	00.00 sec	600 KB	355 B	1800 B	6.in
Case #7:	: Accepted	00.00 sec	620 KB	1552 B	20000 B	7.in
Case #8:	: Accepted	00.00 sec	608 KB	535 B	3200 B	8.in

< prev |	1	/	8	| next >	 		 : Accepted        00.00 sec        596 KB
 
Judge Input #1 ( in1.txt | 40 B)		Judge Output #1 ( out1.txt | 72 B)
6
1 2 2 4
2 1 5
3 2 5 6
4 0
5 1 4
6 1 6
0 1 0 1 0 0
0 0 0 0 1 0
0 0 0 0 1 1
0 0 0 0 0 0
0 0 0 1 0 0
0 0 0 0 0 1
Comments
 
 Under Construction.
 
Categories
 
 
Free Tags
 
 

Compiler output:
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int]
    4 | main(){
      | ^~~~
main.c:41:1: error: unknown type name 'Compile'
   41 | Compile Error Logs:
      | ^~~~~~~
main.c:41:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Logs'
   41 | Compile Error Logs:
      |               ^~~~
main.c:47:6: error: stray '#' in program
   47 | Case #  Verdict CPU Time        Memory  In      Out     Case Name
      |      ^
main.c:48:6: error: stray '#' in program
   48 | Case #1:        : Accepted      00.00 sec       596 KB  40 B    72 B    1.in
      |      ^
main.c:48:73: error: invalid suffix "in" on floating constant
   48 | Case #1:        : Accepted      00.00 sec       596 KB  40 B    72 B    1.in
      |                                                                         ^~~~
main.c:49:6: error: stray '#' in program
   49 | Case #2:        : Accepted      00.00 sec       592 KB  20 B    18 B    2.in
      |      ^
main.c:49:73: error: invalid suffix "in" on floating constant
   49 | Case #2:        : Accepted      00.00 sec       592 KB  20 B    18 B    2.in
      |                                                                         ^~~~
main.c:50:6: error: stray '#' in program
   50 | Case #3:        : Accepted      00.00 sec       596 KB  75 B    200 B   3.in
      |      ^
main.c:50:73: error: invalid suffix "in" on floating constant
   50 | Case #3:        : Accepted      00.00 sec       596 KB  75 B    200 B   3.in
      |                                                                         ^~~~
main.c:51:6: error: stray '#' in program
   51 | Case #4:        : Accepted      00.00 sec       592 KB  62 B    50 B    4.in
      |      ^
main.c:51:73: error: invalid suffix "in" on floating constant
   51 | Case #4:        : Accepted      00.00 sec       592 KB  62 B    50 B    4.in
      |                                                                         ^~~~
main.c:52:6: error: stray '#' in program
   52 | Case #5:        : Accepted      00.00 sec       596 KB  158 B   800 B   5.in
      |      ^
main.c:52:73: error: invalid suffix "in" on floating constant
   52 | Case #5:        : Accepted      00.00 sec       596 KB  158 B   800 B   5.in
      |                                                                         ^~~~
main.c:53:6: error: stray '#' in program
   53 | Case #6:        : Accepted      00.00 sec       600 KB  355 B   1800 B  6.in
      |      ^
main.c:53:73: error: invalid suffix "in" on floating constant
   53 | Case #6:        : Accepted      00.00 sec       600 KB  355 B   1800 B  6.in
      |                                                                         ^~~~
main.c:54:6: error: stray '#' in program
   54 | Case #7:        : Accepted      00.00 sec       620 KB  1552 B  20000 B 7.in
      |      ^
main.c:54:73: error: invalid suffix "in" on floating constant
   54 | Case #7:        : Accepted      00.00 sec       620 KB  1552 B  20000 B 7.in
      |                                                                         ^~~~
main.c:55:6: error: stray '#' in program
   55 | Case #8:        : Accepted      00.00 sec       608 KB  535 B   3200 B  8.in
      |      ^
main.c:55:73: error: invalid suffix "in" on floating constant
   55 | Case #8:        : Accepted      00.00 sec       608 KB  535 B   3200 B  8.in
      |                                                                         ^~~~
main.c:59:13: error: stray '#' in program
   59 | Judge Input #1 ( in1.txt | 40 B)                Judge Output #1 ( out1.txt | 72 B)
      |             ^
main.c:59:62: error: stray '#' in program
   59 | Judge Input #1 ( in1.txt | 40 B)                Judge Output #1 ( out1.txt | 72 B)
      |                                                              ^