제출 #921208

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

using namespace std;

#define all(x) x.begin(), x.end()
#define ar array
#define pb push_back
#define ln '\n'
#define int long long

using i64 = long long;

template <class F, class _S>
bool chmin(F &u, const _S &v){
    bool flag = false;
    if ( u > v ){
        u = v; flag |= true;
    }
    return flag;
}

template <class F, class _S>
bool chmax(F &u, const _S &v){
    bool flag = false;
    if ( u < v ){
        u = v; flag |= true;
    }
    return flag;
}

string s;

void Init() {}

void TypeLetter(char L) {
    s += L;
}

void UndoCommands(int U) {
    assert(false);
}

char GetLetter(int P) {
    return s[P];
}

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

/usr/bin/ld: /tmp/ccKiG336.o: in function `main':
grader.cpp:(.text.startup+0x15f): undefined reference to `UndoCommands(int)'
/usr/bin/ld: grader.cpp:(.text.startup+0x18b): undefined reference to `GetLetter(int)'
collect2: error: ld returned 1 exit status