제출 #298054

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

using ll=long long;
ll mod=1e9, sum=1, n, kul=-1, f;
/*
ll hatv(ll a, ll b) {
    ll ans=1;
    while(b) {
        if (b%2) ans*=a, ans%=mod;
        a*=a, a%=mod;
        b/=2;
    }
    return ans;
}
*/
int valid(int w, int s[]) {
    n=w;
    for (int i=0; i<n; i++) if (s[i]<n) {
        f=(s[i]-i+n)%n;
        if (kul!=-1 && kul!=f) sum=0;
        kul=f;
    }
    return sum;
}
int replacement(int w, int s[], int v[]) {
    return 0;
}
int countReplacement(int w, int s[]) {
    return 0;
}

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

/tmp/ccEtbKyW.o: In function `main':
grader.cpp:(.text.startup+0xa2): undefined reference to `valid'
grader.cpp:(.text.startup+0xee): undefined reference to `countReplacement'
grader.cpp:(.text.startup+0x112): undefined reference to `replacement'
collect2: error: ld returned 1 exit status