Submission #778640

#TimeUsernameProblemLanguageResultExecution timeMemory
778640SilenceCombo (IOI18_combo)C++17
Compilation error
0 ms0 KiB
#include "combo.h" #include <bits/stdc++.h> using namespace std; std::string guess_sequence(int N) { string s; string ans; auto first_subtask = [&](int n){ string cur = "ABXY"; string s; string ans; for (int i = 0;i<4;++i){ string t; t+=cur[i]; if (press(t) == 1){ for (int j = 0;j<4;++j){ if (i == j)continue; s+=cur[j]; } ans+=cur[i]; break; } } for (int i = 0;i<n - 1;++i){ for (int j = 0;j<3;++j){ ans+=s[j]; if (press(ans) == i + 2){ break; } ans.pop_back(); } } return ans; }; string v = second_subtask(N); //cout<<v<<'\n'; return v; }

Compilation message (stderr)

combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:34:13: error: 'second_subtask' was not declared in this scope
   34 |  string v = second_subtask(N);
      |             ^~~~~~~~~~~~~~