제출 #1142124

#제출 시각아이디문제언어결과실행 시간메모리
1142124alilou콤보 (IOI18_combo)C++20
0 / 100
1084 ms408 KiB
#include<bits/stdc++.h>
#include "combo.h"

using namespace std;

string guess_sequence(int n){
    const int m=4;
    string buttons="ABXY";
    string s="";
    for(int i ; i<n ; i++){
        for(int j ; i<m-1 ; i++){
            int lenght=press(s+buttons[j]);
            if (lenght==i+1){
                s+=buttons[j];
                break;
            }
        if (s.size()!=i+1)s+=buttons[m-1];
        }
    s+=buttons[m-1];
    }


}

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

combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:23:1: warning: no return statement in function returning non-void [-Wreturn-type]
   23 | }
      | ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...