Submission #670587

#TimeUsernameProblemLanguageResultExecution timeMemory
670587mseebacherCave (IOI13_cave)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;
 
typedef long long ll;
typedef vector<int> vi;
#define MAXI (int)1e5

void exploreCave(int n){
	int b[n];
	for(int i = 1;i<=n;i++){
		b[i-1] = i;
	}
	int s[n];
	for(int i = 0;i<n;i++) s[i] = 0;
	for(int i = 1;i<=n;i++){
		if(tryCombination(s) != i+1){
			s[i] = 1-s[i];
		}
	}
	answer(s,b);
}

Compilation message (stderr)

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:16:6: error: 'tryCombination' was not declared in this scope
   16 |   if(tryCombination(s) != i+1){
      |      ^~~~~~~~~~~~~~
cave.cpp:20:2: error: 'answer' was not declared in this scope
   20 |  answer(s,b);
      |  ^~~~~~