제출 #732253

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

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