Compiler output
prog.cpp: In function 'bool detect(const std::vector<int>&)':
prog.cpp:95:10: warning: unused variable 'fnd' [-Wunused-variable]
bool fnd = 0;
^
prog.cpp: In function 'int main()':
prog.cpp:167:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < comp.size(); ++i) {
^
prog.cpp:178:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < comp.size(); ++i) {
^
prog.cpp:184:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < comp.size(); ++i)
^