제출 #491618

#제출 시각아이디문제언어결과실행 시간메모리
491618AlexandruabcdeMemory (IOI10_memory)C++14
컴파일 에러
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]);
    }
}

컴파일 시 표준 에러 (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]);
      |         ^~~~~~