printer.cpp: In function 'void build(int, std::string, int)':
printer.cpp:17:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | if(ind==a.length()){
| ~~~^~~~~~~~~~~~
printer.cpp:21:29: warning: array subscript has type 'char' [-Wchar-subscripts]
21 | if(trie[node].arr[a[ind]]==-1){
| ^
printer.cpp:22:30: warning: array subscript has type 'char' [-Wchar-subscripts]
22 | trie[node].arr[a[ind]] = nextnode;
| ^
printer.cpp:28:32: warning: array subscript has type 'char' [-Wchar-subscripts]
28 | build(trie[node].arr[a[ind]],a,ind+1);
| ^
printer.cpp: In function 'void pnt(int, int)':
printer.cpp:35:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | if(ind==final.length()){
| ~~~^~~~~~~~~~~~~~~~
printer.cpp:43:27: warning: array subscript has type 'char' [-Wchar-subscripts]
43 | if(trie[node].arr[i]!=-1){
| ^
printer.cpp:45:32: warning: array subscript has type 'char' [-Wchar-subscripts]
45 | pnt(trie[node].arr[i],ind+1);
| ^
printer.cpp:48:33: warning: array subscript has type 'char' [-Wchar-subscripts]
48 | if(trie[node].arr[final[ind]]!=-1){
| ^
printer.cpp:50:38: warning: array subscript has type 'char' [-Wchar-subscripts]
50 | pnt(trie[node].arr[final[ind]],ind+1);
| ^
printer.cpp: In function 'int main()':
printer.cpp:66:22: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
66 | if(a.length()>maxi){
| ~~~~~~~~~~^~~~~
printer.cpp:73:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
73 | for(int i=0;i<ans.length()-final.length()-1;i++){
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
printer.cpp:56:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
56 | freopen("type.in","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~
printer.cpp:57:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
57 | freopen("type.out","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~