printer.cpp: In constructor 'Trie::Trie()':
printer.cpp:8:21: warning: passing NULL to non-pointer argument 2 of 'void* memset(void*, int, size_t)' [-Wconversion-null]
8 | Trie(){memset(fii, NULL, sizeof(fii)); cnt = 0;}
| ^~~~
In file included from /usr/include/features.h:367,
from /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:524,
from /usr/include/c++/9/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:33,
from printer.cpp:1:
/usr/include/x86_64-linux-gnu/bits/string3.h:78:1: note: declared here
78 | __NTH (memset (void *__dest, int __ch, size_t __len))
| ^~~~~
printer.cpp: In function 'void add(Trie*, char*)':
printer.cpp:17:13: warning: NULL used in arithmetic [-Wpointer-arith]
17 | if (*p == NULL) {
| ^~~~
printer.cpp: In function 'int main()':
printer.cpp:39:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
39 | scanf("%d", &t);
| ~~~~~^~~~~~~~~~
printer.cpp:41:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
41 | scanf("%s", s);
| ~~~~~^~~~~~~~~