password.cpp: In function 'std::string guess(int, int)':
password.cpp:24:19: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
24 | while(ans.size() < n) {
| ~~~~~~~~~~~^~~
password.cpp:12:37: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
12 | #define rep(i, a, b) for(int i = a;i<=b;i++)
......
25 | rep(i, 0, ans.size()) {
| ~~~~~~~~~~~~~~~~
password.cpp:25:3: note: in expansion of macro 'rep'
25 | rep(i, 0, ans.size()) {
| ^~~
/usr/bin/ld: /tmp/ccmGRRiN.o: in function `query(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
grader.cpp:(.text+0x80): multiple definition of `query(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'; /tmp/ccoNbj9L.o:password.cpp:(.text+0x240): first defined here
/usr/bin/ld: /tmp/ccmGRRiN.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccoNbj9L.o:password.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status