Submission #92960

#TimeUsernameProblemLanguageResultExecution timeMemory
92960beso123Combo (IOI18_combo)C++14
0 / 100
3 ms200 KiB
#include <bits/stdc++.h>
#include "combo.h"

using namespace std;

string guess_sequence(int N){
    string s;
if(press("A")==1)
    s="A";
if(press("B")==1)
    s="B";
    if(press("X")==1)
    s="X";
    if(press("Y")==1)
    s="Y";
return s;
}

Compilation message (stderr)

combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:10:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   10 | if(press("B")==1)
      | ^~
combo.cpp:12:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   12 |     if(press("X")==1)
      |     ^~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...