제출 #1051271

#제출 시각아이디문제언어결과실행 시간메모리
1051271vjudge1Shopping (JOI21_shopping)C++17
컴파일 에러
0 ms0 KiB
#include "Anna.h" #include <vector> namespace { int N, L, R; int count; } // namespace void InitA(int N, int L, int R) { ::N = N; ::L = L; ::R = R; count = 1; for(int i=18;i--;) SendA(L>>i&1); } std::vector<int>bools; void ReceiveA(bool x) { bools.push_back(x); } int Answer() { for(int i=R;;i--) if(bools[i-L]) return i; return -1; }

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

/usr/bin/ld: /tmp/cc0oW3Ly.o: in function `main':
grader_bruno.cpp:(.text.startup+0x194): undefined reference to `InitB(int, std::vector<int, std::allocator<int> >)'
/usr/bin/ld: grader_bruno.cpp:(.text.startup+0x20f): undefined reference to `ReceiveB(bool)'
collect2: error: ld returned 1 exit status