Submission #802811

#TimeUsernameProblemLanguageResultExecution timeMemory
802811Gabi88Memory (IOI10_memory)C++14
Compilation error
0 ms0 KiB
#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 (stderr)

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]); }
      |                                 ^~~~~~