답안 #544629

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
544629 2022-04-02T14:04:21 Z pokmui9909 꿈 (IOI13_dreaming) C++17
컴파일 오류
0 ms 0 KB
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
 
ll N, M, L;
vector<pair<ll, ll>> G[100005];
ll V1[100005];
ll D = 0, E = 0;
pair<ll, ll> Dia[100005];
ll ans = 0;
pair<ll, ll> path[100005];
void dfs1(ll n, ll p, ll k){
    V1[n] = 1;
    if(D < k){
        D = k;
        E = n;
    }
    for(auto i : G[n]){
        ll nx = i.first, c = i.second;
        if(nx == p) continue;
        dfs1(nx, n, k + c);
    }
}
void dfs2(ll n, ll p, ll d){
    if(n == d) return;
    for(auto i : G[n]){
        ll nx = i.first, c = i.second;
        if(nx == p) continue;
        path[nx] = {n, c};
        dfs2(nx, n, d);
    }
}
ll R[100005];
ll sum = 1e18;
ll cost = 0;
void track(ll n, ll s, ll i){
    if(n == s) return;
    ll nx = path[n].first, c = path[n].second;
    sum = min(sum, max(R[i] - cost, cost));
    cost += c;
    track(nx, s, i);
}
 
int travelTime(int n, int m, int l, int A[], int B[], int T[]){
  	return 0;
}

Compilation message

/usr/bin/ld: /tmp/ccRRnYW3.o: in function `main':
grader.c:(.text.startup+0xd1): undefined reference to `travelTime'
collect2: error: ld returned 1 exit status