Submission #212263

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
2122632020-03-22 16:06:50jk89Combo (IOI18_combo)C++14
Compilation error
0 ms0 KiB
#include <cstdio>
#include <algorithm>
#include <vector>
#include <iostream>
using namespace std;
#define f first
#define s second
const int MAXN = 2e3 + 3;
bool zab[4];
char who[4] = {'A', 'B', 'X', 'Y'};
string guess_sequence(int n) {
string ans, temp;
char spc;
if (press("A") == 1)
zab[0] = true;
else if (press("B") == 1)
zab[1] = true;
else if (press("X") == 1)
zab[2] = true;
else
zab[3] = true;
bool wys = false;
for (int i = 0; i < 4; i++) {
if (zab[i]) {
wys = true;
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Compilation message (stderr)

combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:19:9: error: 'press' was not declared in this scope
   19 |     if (press("A") == 1)
      |         ^~~~~
combo.cpp:43:15: error: 'press' was not declared in this scope
   43 |         wyn = press(ans + who[0] + ans + who[1] + who[0] + ans + who[1] + who[1] + ans + who[1] + who[2]);
      |               ^~~~~
combo.cpp:52:9: error: 'press' was not declared in this scope
   52 |     if (press(ans + who[0]) == roz + 1)
      |         ^~~~~