traffickers.cpp: In function 'void join(int, int)':
traffickers.cpp:36:29: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
36 | for (int i = 0;pref.size() < tot && i < sub[x].size() ;i++) {
| ~~~~~~~~~~~~^~~~~
traffickers.cpp:36:40: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
36 | for (int i = 0;pref.size() < tot && i < sub[x].size() ;i++) {
| ~~^~~~~~~~~~~~~~~
traffickers.cpp: In function 'std::string guess(int, int)':
traffickers.cpp:57:7: warning: unused variable 'x' [-Wunused-variable]
57 | int x = query(P);
| ^
traffickers.cpp:76:34: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
76 | for (; pref.size() + suf.size() < n; ) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
traffickers.cpp:81:48: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
81 | for (int z = 1; z + pref.size() + suf.size() <= n;) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
traffickers.cpp:109:32: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
109 | if (pref.size() + suf.size() == n) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
traffickers.cpp:111:8: warning: unused variable 'Z' [-Wunused-variable]
111 | int Z = query(pref);
| ^
traffickers.cpp:78:8: warning: variable 'LAST' set but not used [-Wunused-but-set-variable]
78 | char LAST = ((int)pref.size() ? pref.back() : 'a');
| ^~~~
traffickers.cpp:75:7: warning: unused variable 'fs' [-Wunused-variable]
75 | char fs = 'a';
| ^~
traffickers.cpp:116:6: warning: unused variable 'z' [-Wunused-variable]
116 | int z = query(pref);
| ^
/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
/tmp/cc5MWdOv.o: In function `join(int, int)':
traffickers.cpp:(.text+0x29a): undefined reference to `query(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
/tmp/cc5MWdOv.o: In function `guess[abi:cxx11](int, int)':
traffickers.cpp:(.text+0x4f0): undefined reference to `query(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
collect2: error: ld returned 1 exit status