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: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:33:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
33 | while (j < a[i].size() && f[cur][a[i][j]-96]){
| ~~^~~~~~~~~~~~~
printer.cpp:36:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
36 | if (j == a[i].size()){
| ~~^~~~~~~~~~~~~~
printer.cpp:38:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | while (j < a[i].size()-1)
| ~~^~~~~~~~~~~~~~~
printer.cpp:38:4: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
38 | while (j < a[i].size()-1)
| ^~~~~
printer.cpp:39:31: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
39 | cur = f[cur][a[i][j]-96];j++;
| ^
printer.cpp:42:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
42 | for (int k = j ; k < a[i].size() ; k++){
| ~~^~~~~~~~~~~~~
printer.cpp:50:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
50 | while (j < a[i].size() && f[cur][a[i][j]-96]){
| ~~^~~~~~~~~~~~~
printer.cpp:53:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
53 | if (j == a[i].size()){
| ~~^~~~~~~~~~~~~~
printer.cpp:55:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
55 | while (j < a[i].size()-1)
| ~~^~~~~~~~~~~~~~~
printer.cpp:55:4: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
55 | while (j < a[i].size()-1)
| ^~~~~
printer.cpp:56:31: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
56 | cur = f[cur][a[i][j]-96];j++;
| ^
printer.cpp:59:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
59 | for (int k = j ; k < a[i].size() ; k++){
| ~~^~~~~~~~~~~~~
printer.cpp:66:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
66 | for (int i = 0 ; i < vec[0].size()-1 ; i++) dfs(vec[0][i]);
| ~~^~~~~~~~~~~~~~~~~
printer.cpp:21:9: warning: unused variable 'd1' [-Wunused-variable]
21 | int d1 = 0,n,cur,j,maxlen = 0,index = n;string x;char t;
| ^~