In file included from /in/driver/main.cpp:1:0:
/in/shortestP2P.hpp: In member function 'void ShortestP2P::readGraph()':
/in/shortestP2P.hpp:76:31: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for(unsigned int i = 0; i < vertices; i++){
~~^~~~~~~~~~
/in/shortestP2P.hpp:79:31: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for(unsigned int i = 0; i < vertices; i++){
~~^~~~~~~~~~
/in/shortestP2P.hpp:80:36: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (unsigned int j = 0; j < vertices; ++j) {
~~^~~~~~~~~~
/in/shortestP2P.hpp:85:32: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (unsigned int i = 0; i < edges; ++i) {
~~^~~~~~~
/in/shortestP2P.hpp: In member function 'bool ShortestP2P::Floyd()':
/in/shortestP2P.hpp:93:32: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (unsigned int i = 0; i < vertices; ++i) {
~~^~~~~~~~~~
/in/shortestP2P.hpp:94:36: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (unsigned int j = 0; j < vertices; ++j) {
~~^~~~~~~~~~
/in/shortestP2P.hpp:97:40: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (unsigned int k = 0; k < vertices; ++k) {
~~^~~~~~~~~~
/in/shortestP2P.hpp: In function 'std::vector<int> Dijkstra(int**, int, int, int)':
/in/shortestP2P.hpp:142:28: error: conversion to 'int' from 'std::vector<int>::size_type {aka long unsigned int}' may alter its value [-Werror=conversion]
for(int i = temp.size()-1; i >= 0; i--){
~~~~~~~~~~~^~
/in/shortestP2P.hpp: In member function 'std::vector<int>* ShortestP2P::distance(unsigned int, unsigned int)':
/in/shortestP2P.hpp:190:28: error: conversion to 'int' from 'std::vector<int>::size_type {aka long unsigned int}' may alter its value [-Werror=conversion]
for(int i = temp.size()-1; i >= 0; i--){
~~~~~~~~~~~^~
/in/shortestP2P.hpp: At global scope:
/in/shortestP2P.hpp:195:2: error: extra ';' [-Werror=pedantic]
};
^
cc1plus: all warnings being treated as errors