Submission #1002234

# Submission time Handle Problem Language Result Execution time Memory
1002234 2024-06-19T11:16:22 Z amine_aroua The Collection Game (BOI21_swaps) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
//#pragma GCC optimize("O3")
//#pragma GCC optimize("unroll-loops")
using namespace std;
#define int long long
#define pb push_back
#define nl '\n'
#define fore(i, y) for(int i = 0; i < y; i++)
#define forr(i, x, y) for(int i = x;i<=y;i++)
#define forn(i, y, x) for(int i = y; i >= x; i--)


void schedule(int, int);

std::vector<int> visit();

void answer(std::vector<int>);

void solve(int n, int v)
{
    forr(i , 1 , n)
    {
        forr(j , i + 1 , n){
            schedule(i , j);
        }
    }
    visit();
    vector<int> ret;
    forr(i , 1 , n)
        ret.pb(i);
    answer(ret);
}

Compilation message

/usr/bin/ld: /tmp/cc94qU8H.o: in function `solve(long long, long long)':
swaps.cpp:(.text+0x53): undefined reference to `schedule(long long, long long)'
/usr/bin/ld: swaps.cpp:(.text+0x19f): undefined reference to `answer(std::vector<long long, std::allocator<long long> >)'
/usr/bin/ld: /tmp/cchhdRlE.o: in function `main':
grader.cpp:(.text.startup+0x67): undefined reference to `solve(int, int)'
collect2: error: ld returned 1 exit status