제출 #404972

#제출 시각아이디문제언어결과실행 시간메모리
404972LastRonin자매 도시 (APIO20_swap)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #include "swap.h" #define pb push_back #define ll long long #define ull unsigned long long #define mp make_pair #define si short int #define speed ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0) #define pill pair<ll,ll> #define f first #define s second #define pilc pair<ll,char> #define all(a) (a).begin(),(a).end() #define rep(s,e,step) for(int i = (s); i < (e) ; i += step) #define vrep(s,e,step) for(int j = (s); j < (e) ; j += step) #define ex exit(0) #define sz(a) (ll)(a).size() #define triple pair<pill, ll> #define pinode pair<node*, node*> #define quadra pair<pill, pill> #define ld long double using namespace std; const ll N = 1e6 + 10; const ll M = 1e14; const ll big = 1e14; const ll hsh2 = 1964325029 ; const long long mod = 1e9 + 7; const long double EPS = 1e-20; const ll block = 500; const ll shift = 2e3; const ld pi = acos(-1.0); bool kek = 0; void init(ll n, ll m, vector<ll> u, vector<ll> v, vector<ll> w) { if(m == n - 1) { kek = 1; return; } } int getMinimumFuelCapacity(int X, int Y) { if(kek) { return -1; } return 0; } /* 4 4 6 1 9 2 5 3 2 */

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

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