I am learning some graph algorithms and decided to implement a graph as an adjacency list. I am not very comfortable with C++ and I think I am making some syntactic mistakes