Submission #1045276

#TimeUsernameProblemLanguageResultExecution timeMemory
1045276OkassaMemory (IOI10_memory)C++14
Compilation error
0 ms0 KiB
#include "grader.h" #include <vector> #define ll long long using namespace std ; void play() { ll C=1,t=0 ; char x,y ; vector<char> sel(51,0); while (t<25) { faceup(C) ; x=faceup(C) ; C++ ; faceup(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) ; t++ ; } if (y==sel[i]) { C++ ; faceup(C) ; faceup(i) ; C-- ; t++ ; } } sel[C]=x ; sel[C+1]=y ; } } C=C+2 ; ; } }

Compilation message (stderr)

memory.cpp:40:1: error: expected declaration before '}' token
   40 | }
      | ^