제출 #390860

#제출 시각아이디문제언어결과실행 시간메모리
390860jampm동굴 (IOI13_cave)C++17
0 / 100
397 ms356 KiB
#include "cave.h" void exploreCave(int N) { int S[N], D[N]; for (int i = 0; i < N; i++) { D[i] = i; S[i] = 0; } for (int i = 0; i < N; i++) { if (i = tryCombination(S)) S[i] = (S[i] - 1)*(S[i] - 1); } answer(S, D); }

컴파일 시 표준 에러 (stderr) 메시지

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:10:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   10 |     if (i = tryCombination(S)) S[i] = (S[i] - 1)*(S[i] - 1);
      |         ~~^~~~~~~~~~~~~~~~~~~
#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...