Submission #372567

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

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