Submission #372544

#TimeUsernameProblemLanguageResultExecution timeMemory
372544Christopher_RdzMemory (IOI10_memory)C++17
0 / 100
1 ms256 KiB
#include "grader.h" #include "memory.h" void play() { char a, b; int cubeta[102]; for (int i = 1; i <= 100; i++){ cubeta[i] = 0; } for (int i = 1; i <= 50; i++){ a = faceup(i); if (cubeta[a] != 0){ b = faceup(cubeta[a]); }else{ cubeta[a] = i; } } }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:13:17: warning: array subscript has type 'char' [-Wchar-subscripts]
   13 |      if (cubeta[a] != 0){
      |                 ^
memory.cpp:14:26: warning: array subscript has type 'char' [-Wchar-subscripts]
   14 |        b = faceup(cubeta[a]);
      |                          ^
memory.cpp:16:15: warning: array subscript has type 'char' [-Wchar-subscripts]
   16 |        cubeta[a] = i;
      |               ^
memory.cpp:6:12: warning: variable 'b' set but not used [-Wunused-but-set-variable]
    6 |    char a, b;
      |            ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...