In file included from /in/driver/main.cpp:1:0:
/in/shortestP2P.hpp: In member function 'void ShortestP2P::readGraph()':
/in/shortestP2P.hpp:45:29: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i = 0; i < E; i++) {
~~^~~
/in/shortestP2P.hpp:50:29: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int k = 0; k < V; k++) {//e.g. when V = 4, need A1-A4, A0 is the initial matrix
~~^~~
/in/shortestP2P.hpp: In member function 'void ShortestP2P::distance(unsigned int, unsigned int)':
/in/shortestP2P.hpp:64:17: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
if (A == -1) {
~~^~~~~
/in/shortestP2P.hpp: In member function 'void ShortestP2P::init_helper()':
/in/shortestP2P.hpp:79:27: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i = 0; i < V; i++) {
~~^~~
/in/shortestP2P.hpp:81:31: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int j = 0; j < V; j++) {
~~^~~
/in/shortestP2P.hpp: In member function 'void ShortestP2P::update_helper(int)':
/in/shortestP2P.hpp:96:27: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i = 0; i < V; i++) {
~~^~~
/in/shortestP2P.hpp:98:31: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int j = 0; j < V; j++) {
~~^~~
cc1plus: all warnings being treated as errors