Submission #1023024

#TimeUsernameProblemLanguageResultExecution timeMemory
1023024vjudge1Last supper (IOI12_supper)C++17
Compilation error
0 ms0 KiB
#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 (stderr)

/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