Problem adjlist
User breaded
Submission Time 2024-05-01 21:37:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

adjlist.cpp:2:49: error: stray ‘#’ in program
2 | adjacency = {i: [] for i in range(1, n+1)} # Initialize adjacency list
| ^
adjlist.cpp:4:7: error: invalid preprocessing directive #Populate
4 | # Populate adjacency list based on edges
| ^~~~~~~~
adjlist.cpp:7:35: error: stray ‘#’ in program
7 | adjacency[eb].append(ea) # Since it's bi-directional
| ^
adjlist.cpp:7:45: error: missing terminating ' character
7 | adjacency[eb].append(ea) # Since it's bi-directional
| ^~~~~~~~~~~~~~~~~
adjlist.cpp:9:7: error: invalid preprocessing directive #Output
9 | # Output adjacency list
| ^~~~~~
adjlist.cpp:13:3: error: invalid preprocessing directive #Sample
13 | # Sample Input
| ^~~~~~
adjlist.cpp:17:3: error: invalid