Submission #1022776

# Submission time Handle Problem Language Result Execution time Memory
1022776 2024-07-14T05:08:38 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) {
    vector<int>platter(K);
    iota(platter.begin(),platter.end(),0);
    for(auto i:platter)on[i]=1;
    int C=0,yy=log2(2*K-1);
    for(int i=0;i<N;i++){
        int x=GetRequest();
        if(on[x]) continue;
        int k=0;
        for(int c=0;c<yy;c++)
            k+=A[c+C]<<c;
        C+=yy;
        PutBack(platter[k]);
        on[platter[k]]=0;
        platter[k]=x;
        on[x]=1;
    }

}



    

Compilation message

/usr/bin/ld: /tmp/ccLldZOo.o: in function `Assist(unsigned char*, int, int, int)':
advisor.cpp:(.text+0x110): undefined reference to `GetRequest()'
/usr/bin/ld: advisor.cpp:(.text+0x17d): undefined reference to `PutBack(int)'
/usr/bin/ld: /tmp/ccFhVSsm.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/ccxT6Wq8.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