Submission #829562

#TimeUsernameProblemLanguageResultExecution timeMemory
829562vqpahmadCoins (IOI17_coins)C++14
Compilation error
0 ms0 KiB
#include "coins.h" #include <bits/stdc++.h> using namespace std; #define int long long #define ll long long #define pii pair<int,int> #define F first #define S second #define endl '\n' #define pb push_back #define sz(a) (int)a.size() #define all(a) a.begin(),a.end() const int mod = 1e9 + 7; const int N = 1e6 + 15; const ll inf = 1e18; vector<int> coin_flips(vector<int> b, int c) { vector<int> flips(1); int n = 64; int val = 0; for (int i=0;i<n;i++){ if (b[i]) val ^= i; } val ^= c; flips[0] = val; return flips; } int find_coin(vector<int> b) { int ans = 0; for (int i=0;i<64;i++){ if (b[i]) ans ^= i; } return ans; }

Compilation message (stderr)

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