제출 #590728

#제출 시각아이디문제언어결과실행 시간메모리
590728l_rehoMemory (IOI10_memory)C++14
컴파일 에러
0 ms0 KiB

#include <bits/stdc++.h>
using namespace std;

map<int, int> mp;

void play() {

	for(int i = 1; i <= 50; i++){
		int c = faceup(i);
		if(!mp[c]) mp[c] = i;
		else faceup(mp[c]), mp[c] = 0;
	}
   
}

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

memory.cpp: In function 'void play()':
memory.cpp:10:11: error: 'faceup' was not declared in this scope
   10 |   int c = faceup(i);
      |           ^~~~~~