제출 #1284179

#제출 시각아이디문제언어결과실행 시간메모리
1284179muhammad-mutahirMemory (IOI10_memory)C++20
컴파일 에러
0 ms0 KiB
#include "grader.h" #include "memory.h" #include <bits/stdc++.h> using namespace std; void play() { map<char,vector<int>>a; for(int i = 1;i<=50;i++){ a[faceup(i)].push_back(i); } for(auto i:a){ faceup(i.se[0]); faceup(i.se[1]); } }

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

memory.cpp: In function 'void play()':
memory.cpp:12:18: error: 'struct std::pair<const char, std::vector<int> >' has no member named 'se'
   12 |         faceup(i.se[0]);
      |                  ^~
memory.cpp:13:18: error: 'struct std::pair<const char, std::vector<int> >' has no member named 'se'
   13 |         faceup(i.se[1]);
      |                  ^~