제출 #684394

#제출 시각아이디문제언어결과실행 시간메모리
684394mjhmjh1104Ancient Machine (JOI21_ancient_machine)C++17
컴파일 에러
0 ms0 KiB
#include "Bruno.h" #include <vector> using namespace std; bool b[100006]; void Bruno(int n, int l, vector<int> a) { vector<char> v; int lt = 0; while (lt < n && !a[lt]) Remove(lt++); for (int i = lt + 1; i < n; i++) if (a[i]) { Remove(i); b[i] = true; } for (int i = lt + 1; i < n; i++) if (!b[i]) Remove(i); if (lt < n) Remove(lt); }

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

/usr/bin/ld: /tmp/ccGdzKwO.o: in function `main':
grader_anna.cpp:(.text.startup+0x14c): undefined reference to `Anna(int, std::vector<char, std::allocator<char> >)'
collect2: error: ld returned 1 exit status