Submission #755840

# Submission time Handle Problem Language Result Execution time Memory
755840 2023-06-10T16:42:03 Z vjudge1 Password (RMI18_password) C++17
Compilation error
0 ms 0 KB
///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

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){
      |            ^~~~~