Submission #335592

#TimeUsernameProblemLanguageResultExecution timeMemory
335592JoshcMemory (IOI10_memory)C++11
Compilation error
0 ms0 KiB
#include "memory.h"
#include <vector>
using namespace std;
 
void play() {
  vector<int> x[26];
  for (int i=1; i<=50; i++) {
    x[faceup(i)-'A'+1].push_back(i);
  }
  for (int i=1; i<=25; i++) {
    faceup(x[i][0]);
    faceup(x[i][1]);
  }
}

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:8:7: error: 'faceup' was not declared in this scope
    8 |     x[faceup(i)-'A'+1].push_back(i);
      |       ^~~~~~
memory.cpp:11:5: error: 'faceup' was not declared in this scope
   11 |     faceup(x[i][0]);
      |     ^~~~~~