Submission #921208

# Submission time Handle Problem Language Result Execution time Memory
921208 2024-02-03T14:14:31 Z Alihan_8 Crayfish scrivener (IOI12_scrivener) C++17
Compilation error
0 ms 0 KB
#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];
}

Compilation message

/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