Submission #637474

#TimeUsernameProblemLanguageResultExecution timeMemory
637474as111Coins (IOI17_coins)C++14
Compilation error
0 ms0 KiB
#include "coins.h" #include <vector> using namespace std; vector<int> coin_flips(int b[], int c) { int A = 0; for (int i = 0; i < 64; i++) { A = A ^ (i * b[i]); } vector<int> flips; flips.push_back(c ^ A); return flips; } int find_coin(int b[]) { int X = 0; for (int i = 0; i < 64; i++) { X = X ^ (i * b[i]); } return X; }

Compilation message (stderr)

/usr/bin/ld: /tmp/cc76OEWm.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