Submission #1319399

#TimeUsernameProblemLanguageResultExecution timeMemory
1319399lrnnzMagic Show (APIO24_show)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
#include "Alice.h"
using namespace std;

#define ll long long
#define pb push_back

vector<pair<int,int>> Alice(){
    ll n = 100;
    ll x = setN(n);
    vector<pair<int,int>> tree;

    for (int i = 1; i < n; i++) {
        tree.pb({i+1, x % i + 1});
    }

    return tree;
}
#include <bits/stdc++.h>
#include "Alice.h"
using namespace std;

#define ll long long
#define pb push_back

vector<pair<int,int>> Alice(){
    ll n = 100;
    ll x = setN(n);
    vector<pair<int,int>> tree;

    for (int i = 2; i < n; i++) {
        tree.pb({i+1, x % i + 1});
    }

    return tree;
}

Compilation message (stderr)

# 2번째 컴파일 단계

/usr/bin/ld: /tmp/ccXLKG24.o: in function `Alice()':
Bob.cpp:(.text+0x22): undefined reference to `setN(int)'
/usr/bin/ld: /tmp/cciNkJc0.o: in function `main':
grader_bob.cpp:(.text.startup+0x2dd): undefined reference to `Bob(std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > >)'
collect2: error: ld returned 1 exit status