Submission #861444

#TimeUsernameProblemLanguageResultExecution timeMemory
861444AriadnaCoins (IOI17_coins)C++14
Compilation error
0 ms0 KiB
#include "coins.h" using namespace std; vector < int > coin_flips(vector < int >& b, int c) { int val = 0; for (int i = 1; i < 64; ++i) { if (b[i]) { val ^= i; } } vector < int > flips = {c ^ val}; return flips; } int find_coin(vector < int >& b) { int val = 0; for (int i = 1; i < 64; ++i) { if (b[i]) val ^= i; } return val; }

Compilation message (stderr)

/usr/bin/ld: /tmp/cc2XH1UZ.o: in function `main':
grader.cpp:(.text.startup+0x3a5): undefined reference to `coin_flips(std::vector<int, std::allocator<int> >, int)'
/usr/bin/ld: grader.cpp:(.text.startup+0x997): undefined reference to `find_coin(std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status