제출 #669135

#제출 시각아이디문제언어결과실행 시간메모리
669135ToxtaqMemory (IOI10_memory)C++17
0 / 100
1 ms208 KiB
#include "grader.h" #include<bits/stdc++.h> using namespace std; void play(){ int cnt = 0; map<char, pair<int, int>>mp; for(int i = 1;i <= 50;++i){ char c = faceup(i); if(mp[c].first <= 50 && mp[c].first >= 1)mp[c].second = i; else mp[c].first = i; } for(auto i = mp.begin();i != mp.end();++i){ char c1 = (i->second.first); char c2 = faceup(i->second.second); cnt++; if(cnt == 25)return; } }

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

memory.cpp: In function 'void play()':
memory.cpp:13:14: warning: unused variable 'c1' [-Wunused-variable]
   13 |         char c1 = (i->second.first);
      |              ^~
memory.cpp:14:14: warning: unused variable 'c2' [-Wunused-variable]
   14 |         char c2 = faceup(i->second.second);
      |              ^~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...