Submission #650765

#TimeUsernameProblemLanguageResultExecution timeMemory
650765LitusianoCave (IOI13_cave)C++17
Compilation error
0 ms0 KiB
//#include "cave.h" #include<bits/stdc++.h> using namespace std; void exploreCave(int N) { /* ... */ int v[N]; for(int i = 0; i<N; i++) cin>>v[i]; int idx = tryCombination(v); for(int i = idx; i<N;i++){ v[i]^=1; i = tryCombination(v)-1; } int s[N]; for(int i = 0; i<N; i++) s[i] = i; answer(s,v); }

Compilation message (stderr)

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:7:13: error: 'tryCombination' was not declared in this scope
    7 |   int idx = tryCombination(v);
      |             ^~~~~~~~~~~~~~
cave.cpp:13:3: error: 'answer' was not declared in this scope
   13 |   answer(s,v);
      |   ^~~~~~