제출 #466119

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

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