제출 #1200735

#제출 시각아이디문제언어결과실행 시간메모리
1200735china001자매 도시 (APIO20_swap)C++20
컴파일 에러
0 ms0 KiB
#include "swap.h" #include <bits/stdc++.h> #include <vector> using namespace std; #define fopen(s) freopen(s".in","r",stdin);freopen(s".out","w",stdout) #define all(x) (x).begin(), (x).end() #define len(x) (int)x.size() #define pb push_back #define F first #define S second #define int long long #define pii pair<int,int> const int N = 2e5 + 78 , M = 1e9 + 7 , inf = 1e18; const double eps = 1e-11; vector<pii> g[N]; int ww[N]; vector<int> vv; void init(int N, int M, std::vector<int> U, std::vector<int> V, std::vector<int> W) { srand(time(NULL)); for(int i = 0 ; i < M ; i++){ int x = U[i] , y = V[i] , z = W[i]; g[x].pb({y , z}) , g[y].pb({x , z}); ww[x] = z , ww[y] = z; vv.pb(z); } } int getMinimumFuelCapacity(int X, int Y) { return -1; }

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

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