Submission #1317048

#TimeUsernameProblemLanguageResultExecution timeMemory
1317048yessimkhanCombo (IOI18_combo)C++20
Compilation error
0 ms0 KiB
#include "combo.h" #include <bits/stdc++.h> using namespace std; string guess_sequence( int N ) { int k = 0; string p = ""; while(k < N){ if (guess(p + 'A') == k + 1){ p += 'A'; k++; } else if (guess(p + 'B') == k + 1){ p += 'B'; k++; } else if (guess(p + 'X') == k + 1){ p += 'X'; k++; } else if (guess(p + 'Y') == k + 1){ p += 'Y'; k++; } } return p; }

Compilation message (stderr)

combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:14:13: error: 'guess' was not declared in this scope
   14 |         if (guess(p + 'A') == k + 1){
      |             ^~~~~