Submission #813393

#TimeUsernameProblemLanguageResultExecution timeMemory
813393OrazBCave (IOI13_cave)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; #define all(x) (x).begin(), (x).end() #define ll long long int #define pii pair <int, int> #define pb push_back #define ff first #define ss second void exploreCave(int n){ int S[n], D[n]; for (int i = 0; i < n; i++){ D[i] = i; S[i] = 0; } while(1){ int j = tryCombination(S); if (j == -1){ answer(S, D); return; } S[j] = !S[j]; } } // int main () // { // ios::sync_with_stdio(false); // cin.tie(0); // cin >> t; // while (t--){ // } // }

Compilation message (stderr)

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:17:11: error: 'tryCombination' was not declared in this scope
   17 |   int j = tryCombination(S);
      |           ^~~~~~~~~~~~~~
cave.cpp:19:4: error: 'answer' was not declared in this scope
   19 |    answer(S, D);
      |    ^~~~~~