답안 #739664

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
739664 2023-05-11T00:42:17 Z chenyan 자매 도시 (APIO20_swap) C++17
컴파일 오류
0 ms 0 KB
#include<bits/stdc++.h>
using namespace std;
#define int long long
#define ld long double
#define pii pair<int,int>
#define pdd pair<ld,ld>
#define ff first
#define ss second
#define pb push_back
#define eb emplace_back
#define sz(x) ((int)x.size())
#define all(x) x.begin(),x.end()
#define fastio ios::sync_with_stdio(0),cin.tie(0);
#define nl '\n'
#define mN 200010
int n,m;
vector<pii>g[mN];
void init(int N,int M,vector<int>u,vector<int>v,vector<int>w){
	n=N,m=M;	
	for(int i=0;i<m;i++){
		g[u[i]].pb({v[i],w[i]});
		g[v[i]].pb({u[i],w[i]});
	}
}
int getMinimumFuelCapacity(int x,int y){
	return -1;
}
/*
signed main(){
	fastio;
}
*/

Compilation message

/usr/bin/ld: /tmp/cc5b8eB8.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> >)'
/usr/bin/ld: grader.cpp:(.text.startup+0x217): undefined reference to `getMinimumFuelCapacity(int, int)'
collect2: error: ld returned 1 exit status