printer.cpp: In function 'void dfs(int)':
printer.cpp:14:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | for (int i = 0 ; i < vec[u].size() ; i++)
| ~~^~~~~~~~~~~~~~~
printer.cpp: In function 'int main()':
printer.cpp:26:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | if (maxlen < a[i].size()){
| ~~~~~~~^~~~~~~~~~~~~
printer.cpp:42:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
42 | while (j < a[i].size() && f[cur][a[i][j]-96]){
| ~~^~~~~~~~~~~~~
printer.cpp:45:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
45 | if (j == a[i].size()){
| ~~^~~~~~~~~~~~~~
printer.cpp:47:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
47 | while (j < a[i].size()-1)
| ~~^~~~~~~~~~~~~~~
printer.cpp:47:4: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
47 | while (j < a[i].size()-1)
| ^~~~~
printer.cpp:48:31: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
48 | cur = f[cur][a[i][j]-96];j++;
| ^
printer.cpp:51:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
51 | for (int k = j ; k < a[i].size() ; k++){
| ~~^~~~~~~~~~~~~
printer.cpp:58:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
58 | for (int i = 0 ; i < vec[0].size() ; i++) dfs(vec[0][i]);
| ~~^~~~~~~~~~~~~~~