Submission #580627

#TimeUsernameProblemLanguageResultExecution timeMemory
580627Omar_ElgedawyCoins (IOI17_coins)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "grader.cpp" using namespace std; vector<int> coin_flips(vector<int> b, int c) { vector<int>inv; for(int i=0;i<8;i++){ int op=(c&(1<<i))>=1; if(b[i]!=op){ inv.push_back(i); } } if(inv.size()==0){ inv.push_back(40); } return inv; } int find_coin(std::vector<int> b){ int ans=0; for(int i=0;i<6;i++){ ans|=((1<<i)*b[i]); } return ans; }

Compilation message (stderr)

/usr/bin/ld: /tmp/cc8wM4QF.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cc7FafBH.o:coins.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status