제출 #1006451

#제출 시각아이디문제언어결과실행 시간메모리
1006451makanhulia게임 (IOI14_game)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; #define int long long #define fi first #define se second #define pb push_back #define pii pair<int, int> #define all(x) x.begin(), x.end() bool ckmin(int& a, int b){return b < a ? a = b, 1 : 0;} bool ckmax(int& a, int b){return b > a ? a = b, 1 : 0;} const int N = 1500 + 5, mod = 1e9 + 7; int n, f[N]; void initialize(int p) { } bool hasEdge(int u, int v) { f[max(u, v)]++; return f[max(u, v)] == max(u, v); }

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

/usr/bin/ld: /tmp/ccioGtG5.o: in function `main':
grader.cpp:(.text.startup+0x2a): undefined reference to `initialize(int)'
/usr/bin/ld: grader.cpp:(.text.startup+0x94): undefined reference to `hasEdge(int, int)'
collect2: error: ld returned 1 exit status