제출 #335592

#제출 시각아이디문제언어결과실행 시간메모리
335592JoshcMemory (IOI10_memory)C++11
컴파일 에러
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]); } }

컴파일 시 표준 에러 (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]);
      |     ^~~~~~