Submission #868841

#TimeUsernameProblemLanguageResultExecution timeMemory
868841AtabayRajabliCave (IOI13_cave)C++17
Compilation error
0 ms0 KiB
#include "cave.h" void exploreCave(int n) { int a[n] = {0}, ans[n], d[n]; int q = 0; int j = 0; while(q != -1) { int q = tryCombination(a); for(; j<q; j++) { ans[i] = a[i]; d[i] = i; } a[j] ^= a[j]; } answer(ans, d); }

Compilation message (stderr)

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:13:8: error: 'i' was not declared in this scope
   13 |    ans[i] = a[i];
      |        ^