Submission #1005742

#TimeUsernameProblemLanguageResultExecution timeMemory
1005742zh_hCave (IOI13_cave)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.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/ccl6sp95.o: in function `exploreCave(int)':
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> >)'
/usr/bin/ld: /tmp/cc8StXt6.o: in function `main':
grader.c:(.text.startup+0x10): undefined reference to `exploreCave'
collect2: error: ld returned 1 exit status