제출 #1208913

#제출 시각아이디문제언어결과실행 시간메모리
1208913porquenomedejainiciarsesionMemory (IOI10_memory)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
#include <memory.h>
using namespace std;
/*char faceup(int x){
    return 'C';
}*/
void play(){
    unordered_map<char,int> M;
    for(int i=1;i<=50;i++){
        char a=faceup(i);
        if(M[a]!=0){
            faceup(M[a]);
        }else{
            M[a]=i;
        }
    }
}

컴파일 시 표준 에러 (stderr) 메시지

memory.cpp: In function 'void play()':
memory.cpp:10:16: error: 'faceup' was not declared in this scope
   10 |         char a=faceup(i);
      |                ^~~~~~