Submission #480318

#TimeUsernameProblemLanguageResultExecution timeMemory
480318omgCombo (IOI18_combo)C++17
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> using namespace std; string guess_sequence(int N) { string R=""; int comboCur=0; string target="AXYZ"; for (int i=0;i<N;i++) { for (int j=0;j<4; j++) { R.push_back(target[j]); if (press(R) > comboCur) break; R.pop_back(); } comboCur++; } cout<<R; }

Compilation message (stderr)

combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:10:11: error: 'press' was not declared in this scope
   10 |       if (press(R) > comboCur) break;
      |           ^~~~~
combo.cpp:16:1: warning: no return statement in function returning non-void [-Wreturn-type]
   16 | }
      | ^