Submission #344517

# Submission time Handle Problem Language Result Execution time Memory
344517 2021-01-06T04:45:40 Z koketsu Xoractive (IZhO19_xoractive) C++14
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
#define pb push_back
#define LL long long
#define Kultivator ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);

using namespace std;

const LL Mxn = 1e6 + 7;
const LL Mod = 1e9 + 7;
const LL Inf = 1e14 + 7;

int A[101];

void guess(int N){
    for(int i = 1; i <= N; i++){
        cout << "ask(" << i << ")" << '\n';
        fflush(stdout);
        int P;
        cin >> P;
        A[i] = P;
    }
    for(int i = 1; i <= N; i++){
        cout << A[i] << ' ';
    }
}

int main() {
    //Kultivator;
    int N;
    cin >> N;
    guess(N);
}

Compilation message

/tmp/cc5xNIy7.o: In function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/cche27rf.o:Xoractive.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status