Submission #660260

#TimeUsernameProblemLanguageResultExecution timeMemory
660260TruitadepatatesCoins (IOI17_coins)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; #include "coins.h" vector<int> coins_flips(vector<int> b, int c){ int ans = 0; for (int i = 0; i < 64; i++){ if (b[i] == 1) ans ^= i; } ans ^= c; vector<int> flip(1); flip[0] = ans; return flip; } int find_coin(vector<int> b){ int c = 0; for (int i = 0; i < 64; i++){ if (b[i] == 1) c ^= i; } return c; }

Compilation message (stderr)

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