답안 #796289

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
796289 2023-07-28T08:57:00 Z I_Love_EliskaM_ Memory (IOI10_memory) C++14
컴파일 오류
0 ms 0 KB
#include "memory.h"
#include <bits/stdc++.h>
using namespace std;
#define forn(i,n) for(int i=0;i<n;++i)
char a[50];
int vis[50];

void play() {
   int n=50;
   forn(i,n) a[i]=faceup(i+1);
   forn(i,n) {
      if (vis[i]) continue;
      forn(j,n) {
         if (a[i]==a[j]) {
            vis[i]=vis[j]=1;
            faceup(i+1);
            faceup(j+1);
         }
      }
   }
}

Compilation message

memory.cpp: In function 'void play()':
memory.cpp:10:19: error: 'faceup' was not declared in this scope
   10 |    forn(i,n) a[i]=faceup(i+1);
      |                   ^~~~~~
memory.cpp:16:13: error: 'faceup' was not declared in this scope
   16 |             faceup(i+1);
      |             ^~~~~~