password.cpp: In function 'std::string guess(int, int)':
password.cpp:12:17: error: 'query' was not declared in this scope
12 | freq[i]=query(tmp);
| ^~~~~
password.cpp:28:35: error: 'query' was not declared in this scope
28 | int res=vec[0].first-(query(tmp)-j), cnt=0, l=-1, r;
| ^~~~~
password.cpp:31:21: error: 'l' was not declared in this scope
31 | if (l==-1 && cnt==res)
| ^
password.cpp:31:30: error: 'cnt' was not declared in this scope; did you mean 'int'?
31 | if (l==-1 && cnt==res)
| ^~~
| int
password.cpp:34:21: error: 'cnt' was not declared in this scope; did you mean 'int'?
34 | cnt++;
| ^~~
| int
password.cpp:35:21: error: 'cnt' was not declared in this scope; did you mean 'int'?
35 | if (cnt==res+1)
| ^~~
| int
password.cpp:37:21: error: 'r' was not declared in this scope
37 | r=k;
| ^
password.cpp:41:22: error: 'r' was not declared in this scope
41 | while (l<r)
| ^
password.cpp:41:20: error: 'l' was not declared in this scope
41 | while (l<r)
| ^
password.cpp:49:56: error: 'cnt' was not declared in this scope; did you mean 'int'?
49 | res=freq[cur[mid]-'a']-(query(tmp)-j), cnt=0;
| ^~~
| int
password.cpp:58:36: error: 'l' was not declared in this scope
58 | cur.insert(cur.begin()+l, 'a'+vec[i].second);
| ^