Submission #1167736

#TimeUsernameProblemLanguageResultExecution timeMemory
1167736DedibeatCave (IOI13_cave)C++20
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> #define pb push_back #define eb emplace_back #define F first #define S second #define endl '\n' #define all(x) (x).begin(), (x).end() #define put(x) cout << (x) << '\n' using namespace std; using ll = long long; void exploreCave(int N){ int S[N], D[N]; for(int i = 0; i < N; i++) S[i] = 0; for(int i = 0; i < N; i++){ S[i] = 1; D[i] = tryCombination(S); S[i] = 0; } answer(S, D); }

Compilation message (stderr)

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:16:16: error: 'tryCombination' was not declared in this scope
   16 |         D[i] = tryCombination(S);
      |                ^~~~~~~~~~~~~~
cave.cpp:19:5: error: 'answer' was not declared in this scope
   19 |     answer(S, D);
      |     ^~~~~~