Submission #1045341

#TimeUsernameProblemLanguageResultExecution timeMemory
1045341speedcodeMemory (IOI10_memory)C++17
Compilation error
0 ms0 KiB
#include <vector> #define ll long long using namespace std ; void play() { ll C=1,t=0,l=0,m=0 ; char x,y ; vector<char> sel(51,0); while (t<25) { x=faceup(C) ; C++ ; y=faceup(C) ; C-- ; if (y==x){ t++ ; }else { for (ll i=1 ; i<C ; i++) { if (x==sel[i]) { faceup(C) ; faceup(i) ; l++ ; t++ ; } if (y==sel[i]) { C++ ; faceup(C) ; faceup(i) ; C-- ; m++ ; t++ ; } } sel[C]=x ; sel[C+1]=y ; l=0 ; m=0 ; } C=C+2 ; ; } }

Compilation message (stderr)

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