Submission #732253

#TimeUsernameProblemLanguageResultExecution timeMemory
732253Roman70Memory (IOI10_memory)C++17
Compilation error
0 ms0 KiB

#include "memory.h"
#include <bits/stdc++.h>
#define forn(i,n) for(int i = 0;i<n;i++)
#define ll long long
#define pb push_back
#define sz(a) a.size()
using namespace std;



void play() {
    char a,b;
    vector<vector<int>>c(25);
    for(int i = 1;i<=50;i+=2){
            a = faceup(i);
            b = faceup(i+1);

            if(a != b) {c[a-'a'].push_back(i+1);  c[b-'a'].push_back(i+1);}

    }


    for(int i = 0;i<25;i++){
        if(c[i].size()){
            faceup(c[i][0]);
            faceup(c[i][1]);
        }
    }


}

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:16:17: error: 'faceup' was not declared in this scope
   16 |             a = faceup(i);
      |                 ^~~~~~
memory.cpp:26:13: error: 'faceup' was not declared in this scope
   26 |             faceup(c[i][0]);
      |             ^~~~~~