Submission #1023015

# Submission time Handle Problem Language Result Execution time Memory
1023015 2024-07-14T08:43:09 Z vjudge1 Last supper (IOI12_supper) C++17
Compilation error
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(A[i])passive.insert(x);
        if(on[x]) continue;
        int die=*passive.begin();
        PutBack(die);
        on[die]=0;on[x]=0;
        passive.erase(die);
    }
}



    

Compilation message

/usr/bin/ld: /tmp/ccSyOf9s.o: in function `Assist(unsigned char*, int, int, int)':
advisor.cpp:(.text+0x2a1): undefined reference to `GetRequest()'
/usr/bin/ld: advisor.cpp:(.text+0x2dc): undefined reference to `PutBack(int)'
/usr/bin/ld: /tmp/ccQdrT7s.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/ccZ8tiXe.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