printer.cpp: In function 'void dfs(int, int, int)':
printer.cpp:21:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | for(int i = 0; i < ar[cur].size(); i++){
| ~~^~~~~~~~~~~~~~~~
printer.cpp:29:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
29 | for(int i = 0; i < ar[cur].size(); i++){
| ~~^~~~~~~~~~~~~~~~
printer.cpp:20:7: warning: unused variable 'flag' [-Wunused-variable]
20 | bool flag = false;
| ^~~~
printer.cpp: In function 'int main()':
printer.cpp:53:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
53 | for(int j = 0; j < palavras[i].size(); j++){
| ~~^~~~~~~~~~~~~~~~~~~~
printer.cpp:65:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wformat=]
65 | printf("%d\n", ans.size());
| ~^ ~~~~~~~~~~
| | |
| int std::vector<char>::size_type {aka long unsigned int}
| %ld
printer.cpp:66:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
66 | for(int i = 0; i < ans.size(); i++)
| ~~^~~~~~~~~~~~
printer.cpp:44:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
44 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~