제출 #563299

#제출 시각아이디문제언어결과실행 시간메모리
563299JANCARAPANMemory (IOI10_memory)C++17
0 / 100
1 ms296 KiB
#include "grader.h" #include "memory.h" #include <bits/stdc++.h> using namespace std; void play(){ map<int,char> m; int ans = 0; for (int i=1; i<=50; i++){ char c = faceup(i); m[i] = c; } for (char c = 'a'; c<='y'; c++){ int pos1=-1, pos2=-1; for (auto e : m){ if (e.second == c && pos1 == -1) pos1 = e.first; else pos2 = e.first; } faceup(pos1); faceup(pos2); } }

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

memory.cpp: In function 'void play()':
memory.cpp:9:9: warning: unused variable 'ans' [-Wunused-variable]
    9 |     int ans = 0;
      |         ^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...