제출 #1141369

#제출 시각아이디문제언어결과실행 시간메모리
1141369Francisco_MartinCoins (IOI17_coins)C++20
컴파일 에러
0 ms0 KiB
#include <coins.h>
#include <bits/stdc++.h>
using namespace std;

#define debug(v) cerr<<#v" = "<<(v)<<"\n"

using ll=long long;
using ull=unsigned long long;
using pll=pair<ll,ll>;
using vll=vector<ll>;
using vpll=vector<pll>;
using vvll=vector<vll>;
const ll INF=1e9+100;
const ll MOD=998244353;
const ll MAXN=2e5+100;

vector<int> coins_flips(int[] b, int c){
    for(int i=0; i<b.size(); i++) if(b[i]) c^=i;
    vector<int> ans={c};
    return ans;
}

int find_coin(int[] b){
    int c;
    for(int i=0; i<b.size(); i++) if(b[i]) c^=i;
    return c;
}

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

coins.cpp:1:10: fatal error: coins.h: No such file or directory
    1 | #include <coins.h>
      |          ^~~~~~~~~
compilation terminated.