Submission #464381

# Submission time Handle Problem Language Result Execution time Memory
464381 2021-08-13T06:14:58 Z fuad27 Password (RMI18_password) C++14
Compilation error
0 ms 0 KB
#include"password.cpp"
#include<bits/stdc++.h>
using namespace std;
string guess(int n, int s) {
	string ans = "";
	for(int i = 0;i<s;i++) {
		ans+=char(i+'a');
	}
	do {
		if(query(ans.substr(0, n)) == n)return ans.substr(0, n);
	}while(next_permutation(ans.begin(), ans.end()));
	return "";
}

Compilation message

password.cpp:1:9: fatal error: password.cpp: No such file or directory
    1 | #include"password.cpp"
      |         ^~~~~~~~~~~~~~
compilation terminated.