password.cpp: In function 'int query(std::string)':
password.cpp:8:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | for(int i=0;i<pass.size();i++){
| ~^~~~~~~~~~~~
password.cpp:9:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
9 | if(p1<s.size()&&s[p1]==pass[i]){
| ~~^~~~~~~~~
password.cpp: In function 'std::string guess(int, int)':
password.cpp:21:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | for(int k=0;k<ans.size();k++){
| ~^~~~~~~~~~~
password.cpp:24:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | if(query(temp)==temp.size()){
| ~~~~~~~~~~~^~~~~~~~~~~~~
password.cpp:33:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
33 | if(query(temp)==temp.size()){
| ~~~~~~~~~~~^~~~~~~~~~~~~
/usr/bin/ld: /tmp/cchiJQFv.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/ccwsBBUx.o:password.cpp:(.text+0x180): first defined here
collect2: error: ld returned 1 exit status