답안 #1023024

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1023024 2024-07-14T08:47:52 Z vjudge1 최후의 만찬 (IOI12_supper) C++17
컴파일 오류
0 ms 0 KB
#include "assistant.h"
#include<bits/stdc++.h>
using namespace std;
bitset<500100>on;
void Assist(unsigned char *A, int N, int K, int R) {
    set<int>passive;
    for(int i=0;i<K;on[i]=1,i++)
        if(A[N+i])
            passive.insert(i);
    for(int i=0;i<N;i++){
        int x=GetRequest();
        if(on[x]) { if(A[i])
                passive.insert(x);
            continue;
        }
        int die=*passive.begin();
        PutBack(die);
        on[die]=0;on[x]=1;
        passive.erase(die);
        if(A[i])passive.insert(x);
    }
}



    

Compilation message

/usr/bin/ld: /tmp/ccUKpBHk.o: in function `Assist(unsigned char*, int, int, int)':
advisor.cpp:(.text+0x332): undefined reference to `GetRequest()'
/usr/bin/ld: advisor.cpp:(.text+0x367): undefined reference to `PutBack(int)'
/usr/bin/ld: /tmp/ccu41jEk.o: in function `main':
advisor_grader.cpp:(.text.startup+0xe6): undefined reference to `ComputeAdvice(int*, int, int, int)'
collect2: error: ld returned 1 exit status

/usr/bin/ld: /tmp/cc3n3hu7.o: in function `main':
assistant_grader.cpp:(.text.startup+0x21e): undefined reference to `Assist(unsigned char*, int, int, int)'
collect2: error: ld returned 1 exit status