제출 #372567

#제출 시각아이디문제언어결과실행 시간메모리
372567Christopher_RdzMemory (IOI10_memory)C++14
50 / 100
3 ms384 KiB
#include "grader.h" #include "memory.h" char cubeta[52]; void play() { char a, b; int pos = 1; for (int i = 1; i <= 50; i++){ a = faceup(i); cubeta[i] = a; } for (int i = 1; i <= 50; i++){ for (int j = 1; j <= 50; j++){ if (i != j){ if (cubeta[i] == cubeta[j]){ faceup(i); faceup(j); } } } } }

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

memory.cpp: In function 'void play()':
memory.cpp:7:12: warning: unused variable 'b' [-Wunused-variable]
    7 |    char a, b;
      |            ^
memory.cpp:8:7: warning: unused variable 'pos' [-Wunused-variable]
    8 |   int pos = 1;
      |       ^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...