Submission #1005744

#TimeUsernameProblemLanguageResultExecution timeMemory
1005744zh_hCave (IOI13_cave)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "cave.h" #define lint long long #define pb push_back #define mp make_pair using namespace std; int tryCombination(vector<int> S); void answer(vector<int> S, vector<int> D); void exploreCave(int N){ vector<int> S; for(int i = 1; i < N; i ++){ S.pb(0); } S.pb(1); // vector<pair<int, int>> v; vector<int> ans(N); for(int i = 0; i < N; i ++){ ans[N-1-i] = tryCombination(S); // v.pb({tryCombination(S), N-1-i}); S.erase(S.begin()); S.pb(0); } S.erase(S.begin()); S.pb(0); answer(S, ans); } // int main() { // ios_base::sync_with_stdio(false); // cin.tie(NULL); // return 0; // }

Compilation message (stderr)

/usr/bin/ld: /tmp/cc6maOcd.o: in function `exploreCave':
cave.cpp:(.text+0x1c9): undefined reference to `tryCombination(std::vector<int, std::allocator<int> >)'
/usr/bin/ld: cave.cpp:(.text+0x3d2): undefined reference to `answer(std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status