In file included from /in/compile/ex1.cpp:4:0:
/in/ex1.h: In function 'std::__cxx11::string findSingleWord(std::vector<std::__cxx11::basic_string<char> >&)':
/in/ex1.h:74:24: error: operation on 'j' may be undefined [-Werror=sequence-point]
word[j].num = word[j++].num;
~^~
/in/ex1.h:80:1: error: no return statement in function returning non-void [-Werror=return-type]
}
^
/in/ex1.h:15:39: error: unused parameter 'arr' [-Werror=unused-parameter]
string findSingleWord(vector<string> &arr) {
^~~
cc1plus: all warnings being treated as errors