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