Submission #367323

# Submission time Handle Problem Language Result Execution time Memory
367323 2021-02-16T21:31:11 Z Limay123 Cluedo (IOI10_cluedo) C++14
Compilation error
0 ms 0 KB
#include<bits/stdc++.h>
using namespace std;

vector<bool>asesino (6,true);
vector<bool>lugar (10,true);
vector<bool>arma (6,true);

int n,a,l,as;

//n = 1   arma lugar
//n = 2   asesino arma
//n = 3   asesino lugar

bool respuesta(){
    cin >> n;

    if(n == 0){
        return false;
    }
    else{
        if(n == 1){
            asesino[as] = false;
        }
        else if(n == 2){
            lugar[l] = false;
        }
        else if(n == 3){
            arma[a] = false;
        }
        return true;
    }

}

void buscando(){
    for(a = 1; a <= 6; a++){
        for(l = 1; l <= 10; l++){
            for(as = 1; as <= 6; as++){
                cout << as << " " << l << " " << a << "\n";

                if(!respuesta()){
                    cout << as << " " << l << " " << a << "\n";
                    return;
                }
            }
        }
    }
}


int main(){

buscando();

return 0;
}

Compilation message

/tmp/cc8ok0QS.o: In function `main':
grader.c:(.text.startup+0x0): multiple definition of `main'
/tmp/ccLUBziE.o:cluedo.cpp:(.text.startup+0x0): first defined here
/tmp/cc8ok0QS.o: In function `main':
grader.c:(.text.startup+0x49): undefined reference to `Solve()'
collect2: error: ld returned 1 exit status