제출 #1063861

#제출 시각아이디문제언어결과실행 시간메모리
1063861Mr_HusanboyRail (IOI14_rail)C++17
컴파일 에러
0 ms0 KiB
#include "rail.h"
#include <bits/stdc++.h>

using namespace std;

const int maxn = 5e5;

int memo[maxn][maxn];

int get(int i, int j){
	if(memo[i][j] != -1){
		return memo[i][j];
	}
	return getDistance(i, j);
}

void findLocation(int n, int first, int location[], int stype[])
{
	location[0] = first;
	stype[0] = 1;
	if(n == 1){
		return;
	}
	for(int i = 0; i < n; i ++){
		for(int j = 0; j < n; j ++){
			memo[i][j] = -1;
		}
	}
	for(int j = 1; j < n; j ++){
		if(get(0, j) == get(j, 0)){
			location[j] = first + get(0, j);
			stype[j] = 2;
			continue;
		}
	}
}

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

/usr/bin/ld: failed to convert GOTPCREL relocation; relink with --no-relax
collect2: error: ld returned 1 exit status