제출 #1244491

#제출 시각아이디문제언어결과실행 시간메모리
1244491qwusha버섯 세기 (IOI20_mushrooms)C++20
컴파일 에러
0 ms0 KiB
#include "mushrooms.h" #include <iostream> #include <bits/stdc++.h> #define fi first #define se second using namespace std; int inf = 1e9 + 7; int count_mushroom(int n) { int cnt = 1; for (int i = 1; i < n; i++) { vector<int> q = {0, i}; int x = use_machine(q); if (x == 0) { cnt++; } } return cnt; }

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

/usr/bin/ld: /tmp/cc7qrCC6.o: in function `main':
stub.cpp:(.text.startup+0x86): undefined reference to `count_mushrooms(int)'
collect2: error: ld returned 1 exit status