chameleon.cpp:11:35: error: ISO C++ forbids declaration of 'voidfindEdge' with no type [-fpermissive]
voidfindEdge(int i, vector<int> IS) {
^
chameleon.cpp: In function 'int voidfindEdge(int, std::vector<int>)':
chameleon.cpp:13:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (Num == 3 || IS.size() == 1 || Query(IS) == IS.size()) {return(0);}
~~~~~~~~~~^~~~~~~~~~~~
chameleon.cpp:22:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0; i < IS.size(); i++) {
~~^~~~~~~~~~~
chameleon.cpp:26:9: error: 'findEdge' was not declared in this scope
findEdge(i, L);
^~~~~~~~
chameleon.cpp:26:9: note: suggested alternative: 'voidfindEdge'
findEdge(i, L);
^~~~~~~~
voidfindEdge
chameleon.cpp: In function 'void Solve(int)':
chameleon.cpp:52:9: error: 'findEdge' was not declared in this scope
findEdge(i, M);
^~~~~~~~
chameleon.cpp:52:9: note: suggested alternative: 'voidfindEdge'
findEdge(i, M);
^~~~~~~~
voidfindEdge
chameleon.cpp: In function 'int voidfindEdge(int, std::vector<int>)':
chameleon.cpp:29:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^