| Problem | adjmatrix |
|---|---|
| User | CHRK |
| Submission Time | 2026-02-21 22:20:25 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
adjmatrix.cpp:1:3: error: invalid preprocessing directive #Read
1 | # Read number of nodes and edges
| ^~~~
adjmatrix.cpp:4:3: error: invalid preprocessing directive #Initialize
4 | # Initialize adjacency matrix with 0
| ^~~~~~~~~~
adjmatrix.cpp:7:3: error: invalid preprocessing directive #Read
7 | # Read each edge and mark it in the adjacency matrix
| ^~~~
adjmatrix.cpp:10:13: error: stray ‘#’ in program
10 | a -= 1 # convert to 0-based index
| ^
adjmatrix.cpp:13:20: error: stray ‘#’ in program
13 | adj[b][a] = 1 # because the graph is undirected
| ^
adjmatrix.cpp:15:3: error: invalid preprocessing directive #Print
15 | # Print the adjacency matrix
| ^~~~~
adjmatrix.cpp:2:1: error: ‘n’ does not name a type
2 | n, e = map(int, input().split())
| ^