Submission #491618

#TimeUsernameProblemLanguageResultExecution timeMemory
491618AlexandruabcdeMemory (IOI10_memory)C++14
Compilation error
0 ms0 KiB
#include "memory.h"
#include <bits/stdc++.h>

using namespace std;

constexpr int SIGMAX = 26;

vector <int> Yeet[SIGMAX];

void play() {
    for (int i = 1; i <= 50; ++ i ) {
        char ch = faceup(i);

        Yeet[ch-'A'+1].push_back(i);
    }

    for (int i = 1; i <= 25; ++ i ) {
        faceup(Yeet[i][0]);
        faceup(Yeet[i][1]);
    }
}

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:12:19: error: 'faceup' was not declared in this scope
   12 |         char ch = faceup(i);
      |                   ^~~~~~
memory.cpp:18:9: error: 'faceup' was not declared in this scope
   18 |         faceup(Yeet[i][0]);
      |         ^~~~~~