Submission #166683

#TimeUsernameProblemLanguageResultExecution timeMemory
166683samsCave (IOI13_cave)C++14
Compilation error
0 ms0 KiB
#include "cave.h" void exploreCave(int N) { int S[N]; int D[N]; memset(S, 0, sizeof S); memset(D, 0, sizeof D); for(int i = 0 ; i < N ; ++i) { S[i] = 1; int s = tryCombination(S); D[s] = i; S[i] = 0; } answer(S, D); }

Compilation message (stderr)

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:7:2: error: 'memset' was not declared in this scope
  memset(S, 0, sizeof S);
  ^~~~~~