제출 #132584

#제출 시각아이디문제언어결과실행 시간메모리
132584miguelCoins (IOI17_coins)C++14
컴파일 에러
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(vi 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(vi b){ int res=0; for(int i=0; i<64; i++){ if(b[i]==1) res^=i; } return res; }

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

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