제출 #633811

#제출 시각아이디문제언어결과실행 시간메모리
633811ZflopMemory (IOI10_memory)C++14
컴파일 에러
0 ms0 KiB
#include "memory.h"
#include "grader.h"
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include <set> 
 
void play() {
   char b;
   std :: vector <std :: set<int>> A(24);
   for(int i = 1; i <= 50;++i){
	   b = faceup(i);
	   A[b - 'A'].ins(i);
	   }
	for(auto& x:A){
		faceup(*x.begin());
		faceup(*x.rbegin());
		}
	return;
}

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

memory.cpp: In function 'void play()':
memory.cpp:13:16: error: '__gnu_cxx::__alloc_traits<std::allocator<std::set<int> >, std::set<int> >::value_type' {aka 'class std::set<int>'} has no member named 'ins'
   13 |     A[b - 'A'].ins(i);
      |                ^~~