/in/main.cpp: In constructor 'Graph::Graph()':
/in/main.cpp:33:27: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i = 0; i < nodes.size(); i++) {
~~^~~~~~~~~~~~~~
/in/main.cpp: In member function 'void Graph::ShortestPath()':
/in/main.cpp:56:31: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i = 0; i < nodes.size(); i++) {
~~^~~~~~~~~~~~~~
/in/main.cpp:62:31: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i = 0; i < nodes.size(); i++) {
~~^~~~~~~~~~~~~~
/in/main.cpp: In member function 'void Graph::DAG()':
/in/main.cpp:108:26: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
if (order.size() == size) {
~~~~~~~~~~~~~^~~~~~~
/in/main.cpp: In member function 'void Graph::MST()':
/in/main.cpp:116:27: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i = 0; i < nodes.size(); i++) {
~~^~~~~~~~~~~~~~
/in/main.cpp:120:27: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i = 0; i < nodes.size(); i++) {
~~^~~~~~~~~~~~~~
/in/main.cpp:121:31: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int j = 0; j < nodes[i].neighbors.size(); j++) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/main.cpp:124:35: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int k = 0; k < nodes[tempA].neighbors.size(); k++) {
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/main.cpp:149:31: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i = 0; i < nodes.size(); i++) {
~~^~~~~~~~~~~~~~
/in/main.cpp:155:31: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i = 0; i < nodes.size(); i++) {
~~^~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors