Submission #377617

#TimeUsernameProblemLanguageResultExecution timeMemory
377617jlallas384Memory (IOI10_memory)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>

#include "memory.h"
 
using namespace std;
 
void play(){
    vector<vector<int>> a(25);
    for(int i = 1; i <= 50; i++){
        a[faceup(i) - 'A'].push_back(i);
    }
    for(int i = 0; i < 25; i++){
        faceup(a[i][0]);
        faceup(a[i][1]);
    }
}

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:10:11: error: 'faceup' was not declared in this scope
   10 |         a[faceup(i) - 'A'].push_back(i);
      |           ^~~~~~
memory.cpp:13:9: error: 'faceup' was not declared in this scope
   13 |         faceup(a[i][0]);
      |         ^~~~~~