Submission #802811

# Submission time Handle Problem Language Result Execution time Memory
802811 2023-08-02T14:48:00 Z Gabi88 Memory (IOI10_memory) C++14
Compilation error
0 ms 0 KB
#include<bits/stdc++.h>
#include "memory"
using namespace std;

void play(){
	int l[25][2]; memset(l, -1, sizeof l); int x;
	for(int i=1; i < 51; i++){
		x = faceup(i)-'A';
		if (l[x][0] == -1) l[x][0] = i;
		else l[x][1] = i;
	}
	for(int i=0; i < 25; i++){ x = faceup(l[i][0]); x = faceup(l[i][1]); }
	return;
}

Compilation message

memory.cpp: In function 'void play()':
memory.cpp:8:7: error: 'faceup' was not declared in this scope
    8 |   x = faceup(i)-'A';
      |       ^~~~~~
memory.cpp:12:33: error: 'faceup' was not declared in this scope
   12 |  for(int i=0; i < 25; i++){ x = faceup(l[i][0]); x = faceup(l[i][1]); }
      |                                 ^~~~~~