Language: C

stdrsv1122{s1210074}55:	cat ex11b.c
#inclede<stdio.h>
#define N 100
#define WHITE 0
#define GRAY 1
#define BLACK

int n, M[N][N]
  int color[N], d[N], f[N], tt;

void dfs_visit(int u)
{
  int v;
  color[u] = GRAY;
  d[u] = ++tt;
  for ( v = 0; v < n; v++ )
    {
      if(M[u][v] == 0 ) continue;
      if(color[v] == WHITE)
	{
	  dfs_visit(v);
	}
    }
  color[u] = BLACK;
  f[u] = ++tt;
}

void dfs()
{
  int u;
  for (u = 0; u < n; u++ )color[u] = WHITE;
  tt = 0;

  for(u = 0; u < n; u++)
    {
      if(color[u] == WHITE)dfs_visit(u);
    }
  for(u = 0; u < n; u++)
    {
      printf("%d %d %d\n", u + 1, d[u], f[u]);
    }
}

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;
	}
    }

  dfs();

  return 0;
}

Compiler output:
main.c:1:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    1 | stdrsv1122{s1210074}55: cat ex11b.c
      |           ^
main.c:1:21: error: expected identifier or '(' before numeric constant
    1 | stdrsv1122{s1210074}55: cat ex11b.c
      |                     ^~
main.c:2:2: error: invalid preprocessing directive #inclede; did you mean #include?
    2 | #inclede<stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'dfs_visit':
main.c:14:3: error: 'color' undeclared (first use in this function)
   14 |   color[u] = GRAY;
      |   ^~~~~
main.c:14:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:3: error: 'd' undeclared (first use in this function)
   15 |   d[u] = ++tt;
      |   ^
main.c:15:12: error: 'tt' undeclared (first use in this function)
   15 |   d[u] = ++tt;
      |            ^~
main.c:16:20: error: 'n' undeclared (first use in this function)
   16 |   for ( v = 0; v < n; v++ )
      |                    ^
main.c:18:10: error: 'M' undeclared (first use in this function)
   18 |       if(M[u][v] == 0 ) continue;
      |          ^
main.c:24:19: error: expected expression before ';' token
   24 |   color[u] = BLACK;
      |                   ^
main.c:25:3: error: 'f' undeclared (first use in this function)
   25 |   f[u] = ++tt;
      |   ^
main.c: In function 'dfs':
main.c:31:19: error: 'n' undeclared (first use in this function)
   31 |   for (u = 0; u < n; u++ )color[u] = WHITE;
      |                   ^
main.c:31:27: error: 'color' undeclared (first use in this function)
   31 |   for (u = 0; u < n; u++ )color[u] = WHITE;
      |                           ^~~~~
main.c:32:3: error: 'tt' undeclared (first use in this function)
   32 |   tt = 0;
      |   ^~
main.c:40:7: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   40 |       printf("%d %d %d\n", u + 1, d[u], f[u]);
      |       ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | stdrsv1122{s1210074}55: cat ex11b.c
main.c:40:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   40 |       printf("%d %d %d\n", u + 1, d[u], f[u]);
      |       ^~~~~~
main.c:40:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:40:35: error: 'd' undeclared (first use in this function)
   40 |       printf("%d %d %d\n", u + 1, d[u], f[u]);
      |                                   ^
main.c:40:41: error: 'f' undeclared (first use in this function)
   40 |       printf("%d %d %d\n", u + 1, d[u], f[u]);
      |                                         ^
main.c: In function 'main':
main.c:48:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   48 |   scanf("%d", &n);
      |   ^~~~~
main.c:48:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:48:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
main.c:48:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:48:16: error: 'n' undeclared (first use in this function)
   48 |   scanf("%d", &n);
      |                ^
main.c:51:29: error: 'M' undeclared (first use in this function)
   51 |       for(j = 0; j < n; j++)M[i][j] = 0;
      |                             ^