Submission #132583

#TimeUsernameProblemLanguageResultExecution timeMemory
132583miguelCoins (IOI17_coins)C++14
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> #include<coins.h> using namespace std; #define rc(x) return cout<<x<<endl,0 #define pb push_back #define dbg(x) cout << #x << '=' << x << '\n'; #define ll long long #define sz size() #define x first #define y second #define pi pair <int, int> #define pii pair <int, pi> #define vi vector <int> const ll mod = 998244353; int n; vector<int> coins_flips(int b[], int c){ int res=0; for(int i=0; i<64; i++){ if(b[i]==1) res^=i; } vi lol; lol.pb(res^c); return lol; } int find_coin(int b[]){ int res=0; for(int i=0; i<64; i++){ if(b[i]==1) res^=i; } return res; }

Compilation message (stderr)

/tmp/ccou6Rv5.o: In function `main':
grader.cpp:(.text.startup+0x395): undefined reference to `find_coin(std::vector<int, std::allocator<int> >)'
grader.cpp:(.text.startup+0x701): undefined reference to `coin_flips(std::vector<int, std::allocator<int> >, int)'
collect2: error: ld returned 1 exit status