제출 #787172

#제출 시각아이디문제언어결과실행 시간메모리
787172resolve100콤보 (IOI18_combo)C++14
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h>
#include "combo.h"
#define ll long long
#define ull unsigned ll
#define pb push_back
#define fast ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0)

using namespace std;

string chars[] = {"A", "B", "X", "Y"};
string guess_sequence(int N){

    string out;
    for (int i = 0; i < 3; i++){
        for (int j = 0; j < 4; j++){
            int num = press(out+chars[j]);
            if (num == i+1) {
                out.append(chars[j]);
                break;
            }
        }
    }

    return out;
}

int main(){
    cout << guess_sequence(3);

    return 0;
}

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

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