제출 #487104

#제출 시각아이디문제언어결과실행 시간메모리
487104KarukPassword (RMI18_password)C++17
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h>
#include "grader.h"
using namespace std;
string guess(int n , int k)
{
    string s;
    for(int i=0;i<n;i++)
    {
        s+='a';
    }
    while(1)
    {
        for(int i=0;i<n;i++)
        {
            if(s[i]==k+'a'-1)s[i]='a';
            else {s[i]++;i=n+1;}
        }
        int x=query(s);
        if(x==n)return s;
    }
}

컴파일 시 표준 에러 (stderr) 메시지

password.cpp:2:10: fatal error: grader.h: No such file or directory
    2 | #include "grader.h"
      |          ^~~~~~~~~~
compilation terminated.