Submission #390860

#TimeUsernameProblemLanguageResultExecution timeMemory
390860jampmCave (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); }

Compilation message (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...