Submission #503773

#TimeUsernameProblemLanguageResultExecution timeMemory
503773Carmel_Ab1Memory (IOI10_memory)C++17
Compilation error
0 ms0 KiB
#include "memory.h" //#include "grader.cpp" #include <bits/stdc++.h> using namespace std; void play() { vector<vector<int>>pos(26); for(int i=0; i<50; i++) { char c=faceup(i+1); pos[c-'A'].push_back(i+1); } for(int i=0; i<26; i++) for(int x:pos[i]) faceup(x); }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:8:16: error: 'faceup' was not declared in this scope
    8 |         char c=faceup(i+1);
      |                ^~~~~~
memory.cpp:13:13: error: 'faceup' was not declared in this scope
   13 |             faceup(x);
      |             ^~~~~~