Submission #269298

#TimeUsernameProblemLanguageResultExecution timeMemory
269298Bill_00Combo (IOI18_combo)C++14
Compilation error
0 ms0 KiB
#include "combo.h" #include <bits/stdc++.h> using namespace std; std::string guess_sequence(int n){ string p=""; for(int i=1;i<=n;i++){ coins=press(p+'A'); if(coins==p.size()+1){ p+='A'; continue; } coins=press(p+'B'); if(coins==p.size()+1){ p+='B'; continue; } coins=press(p+'X'); if(coins==p.size()+1){ p+='X'; continue; } coins=press(p+'Y'); if(coins==p.size()+1){ p+='Y'; continue; } } return p; }

Compilation message (stderr)

combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:7:3: error: 'coins' was not declared in this scope; did you mean 'cos'?
    7 |   coins=press(p+'A');
      |   ^~~~~
      |   cos