Submission #382322

#TimeUsernameProblemLanguageResultExecution timeMemory
382322Andyvanh1Cave (IOI13_cave)C++14
13 / 100
18 ms492 KiB
#include <iostream> #include <vector> #include "cave.h" using namespace std; void exploreCave(int n){ int S[n]; int D[n]; for(int i = 0; i < n; i++){ S[i] = 0; D[i] = i; } int k = 0; for(int i = 0; i < n; i++){ S[i] = 1; D[i] = tryCombination(S); S[i] = 0; } answer(S,D); }

Compilation message (stderr)

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:15:9: warning: unused variable 'k' [-Wunused-variable]
   15 |     int k = 0;
      |         ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...