Language: C

		// v ????????±??????????????§cost?????´??°??§??????????????????
		for ( u = 1 ; u < m + 1 ; u++ ) {
			cost[ u ] = min( cost[ u ], cost[ v ] + route[ v ][ u ] );
		}
	}
}
 
int main( void )
{
	int i, j, k;
	int result;

	while ( scanf( "%d %d", &n, &m ), n != 0 ) {
		for ( i = 0 ; i < MAX_STATION ; i++ ) {
			for (j = 0 ; j < MAX_STATION ; j++ ) {
				croute[ i ][ j ] = ( i == j ) ? 0 : MAX;
				troute[ i ][ j ] = ( i == j ) ? 0 : MAX;
			}
		}
		while (n > 0) {
			int a, b, c, t;
			scanf( "%d %d %d %d", &a, &b, &c, &t );
			croute[ a ][ b ] = croute[ b ][ a ] = c;
			troute[ a ][ b ] = troute[ b ][ a ] = t;
			n--;
		}
		
		scanf( "%d", &k );
		while ( k > 0 ) {
			int p, q, r;
			scanf( "%d %d %d", &p, &q, &r );
			dijkstra( p, ( r == 0 ) ? croute : troute );
			result = cost[ q ];
			printf( "%d\n", result );
			k--;
		}
	}
	return 0;
}

Compiler output:
main.c:2:17: error: expected identifier or '(' before 'for'
    2 |                 for ( u = 1 ; u < m + 1 ; u++ ) {
      |                 ^~~
main.c:2:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    2 |                 for ( u = 1 ; u < m + 1 ; u++ ) {
      |                                 ^
main.c:2:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    2 |                 for ( u = 1 ; u < m + 1 ; u++ ) {
      |                                            ^~
main.c:5:9: error: expected identifier or '(' before '}' token
    5 |         }
      |         ^
main.c:6:1: error: expected identifier or '(' before '}' token
    6 | }
      | ^
main.c: In function 'main':
main.c:13:17: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   13 |         while ( scanf( "%d %d", &n, &m ), n != 0 ) {
      |                 ^~~~~
main.c:1:8: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 |                 // v ????????±??????????????§cost?????´??°??§??????????????????
main.c:13:17: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   13 |         while ( scanf( "%d %d", &n, &m ), n != 0 ) {
      |                 ^~~~~
main.c:13:17: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:13:34: error: 'n' undeclared (first use in this function)
   13 |         while ( scanf( "%d %d", &n, &m ), n != 0 ) {
      |                                  ^
main.c:13:34: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:38: error: 'm' undeclared (first use in this function)
   13 |         while ( scanf( "%d %d", &n, &m ), n != 0 ) {
      |                                      ^
main.c:14:35: error: 'MAX_STATION' undeclared (first use in this function)
   14 |                 for ( i = 0 ; i < MAX_STATION ; i++ ) {
      |                                   ^~~~~~~~~~~
main.c:16:33: error: 'croute' undeclared (first use in this function)
   16 |                                 croute[ i ][ j ] = ( i == j ) ? 0 : MAX;
      |                                 ^~~~~~
main.c:16:69: error: 'MAX' undeclared (first use in this function)
   16 |                                 croute[ i ][ j ] = ( i == j ) ? 0 : MAX;
      |                                                                     ^~~
main.c:17:33: error: 'troute' undeclared (first use in this function)
   17 |                                 troute[ i ][ j ] = ( i == j ) ? 0 : MAX;
      |                                 ^~~~~~
main.c:32:25: error: implicit declaration of function 'dijkstra' [-Wimplicit-function-declaration]
   32 |                         dijkstra( p, ( r == 0 ) ? croute : troute );
      |                         ^~~~~~~~
main.c:33:34: error: 'cost' undeclared (first use in this function)
   33 |                         result = cost[ q ];
      |                                  ^~~~
main.c:34:25: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   34 |                         printf( "%d\n", result );
      |                         ^~~~~~
main.c:34:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:34:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:34:25: note: include '<stdio.h>' or provide a declaration of 'printf'