제출 #866191

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

void play() {
  
   map<char,vector<int> > mp;
   for (int i=1; i<=50; ++i) {
      	char ch=faceup(i);
      	mp[ch].push_back(i);
   }
   
   for(char i='A'; i<='Z';i++){
   		faceup(mp[i][0]);
		faceup(mp[i][1]);
   }
   
   
}

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

memory.cpp: In function 'void play()':
memory.cpp:8:16: error: 'faceup' was not declared in this scope
    8 |        char ch=faceup(i);
      |                ^~~~~~
memory.cpp:13:6: error: 'faceup' was not declared in this scope
   13 |      faceup(mp[i][0]);
      |      ^~~~~~