Submission #590728

#TimeUsernameProblemLanguageResultExecution timeMemory
590728l_rehoMemory (IOI10_memory)C++14
Compilation error
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;
	}
   
}

Compilation message (stderr)

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