password.cpp: In function 'std::string guess(long long int, long long int)':
password.cpp:10:18: error: 'i' was not declared in this scope
10 | for(int j=1; i<=s; j++){
| ^
password.cpp:11:18: error: could not convert 'a' from 'char' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
11 | if(query(a)==1)c.push_back(a);
| ^
| |
| char
password.cpp:14:19: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | for(int j=0; j<c.size(); j++){
| ~^~~~~~~~~
password.cpp:16:23: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
16 | for(int i=0; i<c.size(); i++){
| ~^~~~~~~~~
password.cpp:18:30: error: could not convert '(((int)c.std::vector<char>::operator[](((std::vector<char>::size_type)i))) + ((int)c.std::vector<char>::operator[](((std::vector<char>::size_type)j))))' from 'int' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
18 | if(query(c[i]+c[j])==2)cnt++;
password.cpp:22:1: warning: no return statement in function returning non-void [-Wreturn-type]
22 | }
| ^