Submission #633815

#TimeUsernameProblemLanguageResultExecution timeMemory
633815ZflopMemory (IOI10_memory)C++14
Compilation error
0 ms0 KiB
#include "memory.h" #include "grader.h" #include <stdio.h> #include <stdlib.h> #include <vector> #include <set> void play() { char b; int A[25][2]; for(int i = 1; i <= 50;++i){ b = faceup(i); if(A[b - 'A'][0]) A[b - 'A'][1] = i; else A[b - 'A'][0] = i; } for(int i = 0 ; i < 25;++i){ faceup(*x.begin()); faceup(*x.rbegin()); } return; }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:19:11: error: 'x' was not declared in this scope
   19 |   faceup(*x.begin());
      |           ^