I got some issue with my code


It is giving different o/p over different compiler

  1. Can I please know how to pass an argument to the class while declaring
    Graph g(5) where 5 is number of nodes, please modify my code like that
  2. I am getting 3 different output over different compilers, please look into it.

@sshreya2912 you can make use of constructors for this!

Thank you so much! I got it!