Submission #372539

#TimeUsernameProblemLanguageResultExecution timeMemory
372539meperdonas203Memory (IOI10_memory)C++17
0 / 100
1 ms256 KiB
#include "grader.h" #include "memory.h" void play() { int ans1; int ans2; for(int i=1;i<50;i++){ for(int j=i+1;j<50;j++){ ans1=faceup(i); ans2=faceup(j); if(ans1=ans2)break; } } }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:11:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   11 |         if(ans1=ans2)break;
      |            ~~~~^~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...