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 = mx = 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:12: warning: NULL used in arithmetic [-Wpointer-arith]
17 | if (*p == NULL) {
| ^~~~
printer.cpp: In function 'int main()':
printer.cpp:66:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wformat=]
66 | printf("%d\n", sol.size());
| ~^ ~~~~~~~~~~
| | |
| int std::__cxx11::basic_string<char>::size_type {aka long unsigned int}
| %ld
printer.cpp:56:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
56 | scanf("%d", &t);
| ~~~~~^~~~~~~~~~
printer.cpp:58:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
58 | scanf("%s", s);
| ~~~~~^~~~~~~~~