제출 #372539

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

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