Submission #466119

#TimeUsernameProblemLanguageResultExecution timeMemory
466119iraira655Memory (IOI10_memory)C++17
0 / 100
0 ms200 KiB
#include "grader.h"
#include "memory.h"
#include <bits/stdc++.h>
using namespace std;

#define pb push_back

void play() {
   char a, b, c;
   map<char, int>card_Pos;
   for (int i=0; i<26; i++) {
      a = faceup(i);
      card_Pos[a] = i;
   }

   for(int i = 26 ; i <= 50; i++){
      b = faceup(i);
      int c2 = card_Pos[b];
      c = faceup(c2);
   }
}

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:9:15: warning: variable 'c' set but not used [-Wunused-but-set-variable]
    9 |    char a, b, c;
      |               ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...