printer.cpp: In function 'void dfs(int)':
printer.cpp:38:60: warning: narrowing conversion of '(97 + i)' from 'int' to 'char' [-Wnarrowing]
38 | temp.push_back({t[now].nxt[i],t[now].dep[i],'a'+i});
| ~~~^~
printer.cpp: In function 'int main()':
printer.cpp:58:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wformat=]
58 | printf("%d\n",ans.size());
| ~^ ~~~~~~~~~~
| | |
| int std::vector<char>::size_type {aka long unsigned int}
| %ld
printer.cpp:51:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
51 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
printer.cpp:53:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
53 | scanf(" %s",s+1);
| ~~~~~^~~~~~~~~~~