Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 4 years ago

Language

C++

Compiler

gcc 10.1.0

Options
Warnings
Don't Use Boost
C++2a
no pedantic

Author

anonymous

about 4 years ago

$ g++ prog.cc -Wall -Wextra -std=c++2a
prog.cc: In function 'int main()':
prog.cc:56:22: warning: unused variable 'choice' [-Wunused-variable]
   56 |   int num, distance, choice, head, tail;
      |                      ^~~~~~
Enter the number of vertices: 
Please label the vertices ('A', 'B', 'C', etc.)
Label for vertex 1: Label for vertex 2: 
Enter two edges between OUTPUT i and i+1 vertices (e.g. 1 5): Enter the weight of this edge:  Input is invalid

Enter two edges between OUTPUT i and i+1 vertices (e.g. 1 5): Enter the weight of this edge:  Input is invalid

Adjacency list of the vertex 0 with labeled name: A

Adjacency list of the vertex 1 with labeled name: B
Exit Code:
0