제출 #1219126

#제출 시각아이디문제언어결과실행 시간메모리
1219126takoshanavaCoins (IOI17_coins)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #include "coins.h" //#define int long long #define pb push_back #define fs first #define sc second using namespace std; vector<int> coin_flips(vector<int> b, int c) { int x = 0; for(int i = 0; i < 63; i++){ if(b[i] == 1) x ^= i; } int y = c ^ x; b[y] ^= 1; return b; } int find_coin(vector<int> b){ int y = 0; for(int i = 0; i < 64; i++){ if(b[i] == 1) y^= i; } return y; } signed main() { }

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

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