Submission #1327477

#TimeUsernameProblemLanguageResultExecution timeMemory
1327477michael12Game (IOI14_game)C++20
Compilation error
0 ms0 KiB
#include "game.h"
#include<bits/stdc++.h>
#define ff first
#define ss second
#define pb push_back
#define int long long
using namespace std;
const int inf = 1e9 + 10;
const int maxn = 2e5 + 5;
int a[1505];
void initialize(int n){
}
int hasEdge(int u, int v){
    int T;
    if(u > v){
        T = u;
        u = v;
        v = T;
    }
    return a[v] == v;
}

Compilation message (stderr)

/usr/bin/ld: /tmp/cctbz2fc.o: in function `main':
grader.cpp:(.text.startup+0x2c): undefined reference to `initialize(int)'
/usr/bin/ld: grader.cpp:(.text.startup+0x94): undefined reference to `hasEdge(int, int)'
collect2: error: ld returned 1 exit status