제출 #377617

#제출 시각아이디문제언어결과실행 시간메모리
377617jlallas384Memory (IOI10_memory)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>

#include "memory.h"
 
using namespace std;
 
void play(){
    vector<vector<int>> a(25);
    for(int i = 1; i <= 50; i++){
        a[faceup(i) - 'A'].push_back(i);
    }
    for(int i = 0; i < 25; i++){
        faceup(a[i][0]);
        faceup(a[i][1]);
    }
}

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

memory.cpp: In function 'void play()':
memory.cpp:10:11: error: 'faceup' was not declared in this scope
   10 |         a[faceup(i) - 'A'].push_back(i);
      |           ^~~~~~
memory.cpp:13:9: error: 'faceup' was not declared in this scope
   13 |         faceup(a[i][0]);
      |         ^~~~~~