Submission #1139236

#TimeUsernameProblemLanguageResultExecution timeMemory
1139236davele콤보 (IOI18_combo)C++20
Compilation error
0 ms0 KiB
#ifndef davele
#include "combo.h"
#endif // davele

#include <bits/stdc++.h>
#define pq priority_queue
#define int long long
#define ll long long
#define pii pair<int, int>
#define fi first
#define se second
#define pb push_back
#define MASK(i) (1ll<<(i))
#define next __next
#define pos __pos
using namespace std;
const double PI = acos(-1);
/*const int mod = ;

void sub (int&a, const int&b){
    a-=b;
    if (a<0) a+=mod;
}

void mul (int&a, const int&b){
    a = (1ll*a*b)%mod;
}

void add (int&a, const int&b){
    a+=b;
    if (a>=mod) a-=mod;
}*/


////////////////////////////////////////////////////////////////////////////////////////////
#ifndef davele

string guess_sequence(int N) {
    string p = "";
    for (int i = 0; i < 4 * N; ++i) {
        p += 'A';
    }
    int coins = press(p);
    string S = "";
    for (int i = 0; i < N; ++i) {
        S += 'A';
    }
    return S;
}

#endif // davele

#ifdef davele
signed main(){
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    freopen(".inp", "r", stdin);
    freopen(".out", "w", stdout);
}
#endif // davele

Compilation message (stderr)

/usr/bin/ld: /tmp/ccuWwr4s.o: in function `main':
grader.cpp:(.text.startup+0x4c): undefined reference to `guess_sequence[abi:cxx11](int)'
collect2: error: ld returned 1 exit status