제출 #433493

#제출 시각아이디문제언어결과실행 시간메모리
433493KanaifuCoins (IOI17_coins)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #include "grader.cpp" #include "coins.h" using namespace std; std::vector<int> coin_flips(std::vector<int> b, int c) { int board = 0; for (int pos=0; pos<64; pos++) { if (b[pos]) { board = board ^ pos; } } int change = board ^ c; vector <int> nov = {change}; return nov; } int find_coin(std::vector<int> b) { int board = 0; for (int pos=0; pos<64; pos++) { if (b[pos]) { board = board ^ pos; } } return board; } /* 3 0 11101101 01000010 01011010 11110101 11000010 01011101 01000110 10111111 7 01110010 11110101 00000100 10110001 00010111 00110101 00001110 10101110 7 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 */

컴파일 시 표준 에러 (stderr) 메시지

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