Submission #1343468

#TimeUsernameProblemLanguageResultExecution timeMemory
1343468NAMINWerewolf (IOI18_werewolf)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
#include "combo.h"
using namespace std;

string guess_sequence(int N){
	vector<char> caras{'A','B','X','Y'};
	string res = "";
	for(char c : caras){
		if(press(res+c)!=0){
			res+=c;
			break;
		}
	}
	caras.erase(find(caras.begin(),caras.end(),res[0]));
	for(int len=2;len<=N;len++){
		int idx = rand()%3;
		while(press(res+caras[idx])!=len){
			idx=rand()%3;
		}
		res += caras[idx];
	}
	return res;
}

Compilation message (stderr)

werewolf.cpp:2:10: fatal error: combo.h: No such file or directory
    2 | #include "combo.h"
      |          ^~~~~~~~~
compilation terminated.