제출 #503773

#제출 시각아이디문제언어결과실행 시간메모리
503773Carmel_Ab1Memory (IOI10_memory)C++17
컴파일 에러
0 ms0 KiB
#include "memory.h"
//#include "grader.cpp"
#include <bits/stdc++.h>
using namespace std;
void play() {
    vector<vector<int>>pos(26);
    for(int i=0; i<50; i++) {
        char c=faceup(i+1);
        pos[c-'A'].push_back(i+1);
    }
    for(int i=0; i<26; i++)
        for(int x:pos[i])
            faceup(x);

}

컴파일 시 표준 에러 (stderr) 메시지

memory.cpp: In function 'void play()':
memory.cpp:8:16: error: 'faceup' was not declared in this scope
    8 |         char c=faceup(i+1);
      |                ^~~~~~
memory.cpp:13:13: error: 'faceup' was not declared in this scope
   13 |             faceup(x);
      |             ^~~~~~