Submission #1047234

#TimeUsernameProblemLanguageResultExecution timeMemory
1047234vjudge1Arranging Shoes (IOI19_shoes)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
using std::cin, std::cout, std::vector, std::set, std::endl, std::string, std::map,std::pair,std::max,std::min;

string guess_sequence(int N){
	if(N==3){
		string table[4] = {"A","B","X","Y"};
		for(int i=0;i<4;i++){
			for(int j=0;j<4 && j!=i;j++){
				for(int k=0;k<4 && k!=i;k++){
					string str = table[i]+table[j]+table[k];
					if(press(str)==3){
						return str;
					}
				}
			}
		}
	}
	return "";
}

Compilation message (stderr)

shoes.cpp: In function 'std::string guess_sequence(int)':
shoes.cpp:11:9: error: 'press' was not declared in this scope
   11 |      if(press(str)==3){
      |         ^~~~~