Submission #1002235

#TimeUsernameProblemLanguageResultExecution timeMemory
1002235amine_arouaThe Collection Game (BOI21_swaps)C++17
Compilation error
0 ms0 KiB
#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 i, int j); std::vector<int> visit(); void answer(std::vector<int> v); 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 (stderr)

/usr/bin/ld: /tmp/ccKmsPCz.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/ccm4uL3x.o: in function `main':
grader.cpp:(.text.startup+0x67): undefined reference to `solve(int, int)'
collect2: error: ld returned 1 exit status