제출 #1370678

#제출 시각아이디문제언어결과실행 시간메모리
1370678husseinjuandaMemory (IOI10_memory)C++20
컴파일 에러
0 ms0 KiB
#include "memory.h"
#include <bits/stdc++.h>
using namespace std;

void play() {
    vector<int> pos[25];

    for (int i = 1; i <= 50; i++) {
        char c = faceup(i);
        pos[c - 'A'].push_back(i);
    }

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

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

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