Submission #755840

#TimeUsernameProblemLanguageResultExecution timeMemory
755840vjudge1Password (RMI18_password)C++17
Compilation error
0 ms0 KiB
///YOU WILL MAKE IT #include<bits/stdc++.h> using namespace std; string guess(int n,int s){ string cur=""; for(int j=1;j<=n;j++){ for(int i=0;i<s;i++){ char c=i+'a'; if(query(cur+c)==j){ cur+=c; break; } } } return cur; }

Compilation message (stderr)

password.cpp: In function 'std::string guess(int, int)':
password.cpp:9:12: error: 'query' was not declared in this scope
    9 |         if(query(cur+c)==j){
      |            ^~~~~