/in/main.cpp: In function 'int main()':
/in/main.cpp:131:12: error: switch condition has boolean value [-Werror=switch-bool]
switch (dist_exist) {
^
/in/main.cpp:133:89: error: this statement may fall through [-Werror=implicit-fallthrough=]
cout << "Shortest path length is " << G.allNode[destination_index].distance << endl;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/in/main.cpp:134:9: note: here
case false:
^~~~
cc1plus: all warnings being treated as errors