Submission #992790

#TimeUsernameProblemLanguageResultExecution timeMemory
992790emad234Cave (IOI13_cave)C++17
Compilation error
0 ms0 KiB
#include "bits/stdc++.h" #define F first #define S second #define ll long long #define pii pair<ll,ll> const int mxN = 4e6 + 5; const int mod = 1e9 + 7; using namespace std; void exploreCave(int N) { int c[N] = {},ans[N]; for(int i = 0;i < N;i++){ c[i] = 1; int x = tryCombination(c); ans[i] = x; } c[N] = 0; answer(c,ans); }

Compilation message (stderr)

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:14:17: error: 'tryCombination' was not declared in this scope
   14 |         int x = tryCombination(c);
      |                 ^~~~~~~~~~~~~~
cave.cpp:18:5: error: 'answer' was not declared in this scope
   18 |     answer(c,ans);
      |     ^~~~~~