Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C

Compiler

gcc 8.2.0

Options
Warnings
C11(GNU)
no pedantic

Author

anonymous

over 6 years ago

$ gcc prog.c -Wall -Wextra -std=gnu11
prog.c: In function 'main':
prog.c:9:39: warning: variable 'count_t' set but not used [-Wunused-but-set-variable]
   int distance[N],visited[N],route[N],count_t[N];
                                       ^~~~~~~
       0       17  1000000  1000000  1000000  1000000  1000000 
      17        0       21        7  1000000  1000000  1000000 
 1000000       21        0       13        5  1000000  1000000 
 1000000        7       13        0  1000000        5  1000000 
 1000000  1000000        5  1000000        0       16       22 
 1000000  1000000  1000000        5       16        0       25 
 1000000  1000000  1000000  1000000       22       25        0 
---------------------------------------------------------------
now = 0
      0  1000000  1000000  1000000  1000000  1000000  1000000 
      1       0       0       0       0       0       0 
     -1      -1      -1      -1      -1      -1      -1 
---------------------------------------------------------------
now = 1
      0      17  1000000  1000000  1000000  1000000  1000000 
      1       1       0       0       0       0       0 
     -1       0      -1      -1      -1      -1      -1 
---------------------------------------------------------------
now = 3
      0      17      38      24  1000000  1000000  1000000 
      1       1       0       1       0       0       0 
     -1       0       1       1      -1      -1      -1 
---------------------------------------------------------------
now = 5
      0      17      37      24  1000000      29  1000000 
      1       1       0       1       0       1       0 
     -1       0       3       1      -1       3      -1 
---------------------------------------------------------------
now = 4
      0      17      37      24      45      29      54 
      1       1       0       1       1       1       0 
     -1       0       3       1       5       3      -1 
Exit Code:
0