제출 #382322

#제출 시각아이디문제언어결과실행 시간메모리
382322Andyvanh1동굴 (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); }

컴파일 시 표준 에러 (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...