제출 #1290375

#제출 시각아이디문제언어결과실행 시간메모리
1290375islam_2010곤돌라 (IOI14_gondola)C++20
컴파일 에러
0 ms0 KiB
#include "gondola.h"
#include <bits/stdc++.h>
using namespace std;

const int sz = 2e5+5;
const int inf = 1e9 + 7;


int valid(int n, int inputSeq[]) {
    int ind = -1;
    for (int i = 0; i < n; i++) {
        if (inputSeq[i] == 1) {
            ind = i;
            break;
        }
    }
    if (ind == -1) return 0;

    for (int i = 0; i < n; i++) {
        if (inputSeq[(ind + i) % n] != i + 1) return 0;
    }
    return 1;
}

int replacement(int n, int k, int inputSeq[], int replacementSeq[]) {
    return -1;
}

int countReplacement(int n, int inputSeq[]) {
    return -1;
}

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

/usr/bin/ld: /tmp/ccEtry7F.o: in function `main':
grader.cpp:(.text.startup+0xfc): undefined reference to `replacement'
collect2: error: ld returned 1 exit status