Submission #698009

#TimeUsernameProblemLanguageResultExecution timeMemory
698009stevancvMemory (IOI10_memory)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "memory.h" using namespace std; void play() { vector<int> l(25), r(25); for (int i = 1; i <= 50; i++) { int x = faceup(i); if (l[x] == 0) l[x] = i; else r[x] = i; } for (int i = 1; i <= 25; i++) { faceup(l[i]); faceup(r[i]); } }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:7:17: error: 'faceup' was not declared in this scope
    7 |         int x = faceup(i);
      |                 ^~~~~~
memory.cpp:12:9: error: 'faceup' was not declared in this scope
   12 |         faceup(l[i]); faceup(r[i]);
      |         ^~~~~~