Submission #1202103

#TimeUsernameProblemLanguageResultExecution timeMemory
1202103PlayVoltzMemory (IOI10_memory)C++20
Compilation error
0 ms0 KiB
#include "grader.h"
#include "memory.h"
#include <bits/stdc++.h>
using namespace std;

void play(){
	map<char, vector<int> > m;
	for (int i=1; i<=50; ++i)m[faceup(i)].pb(i);
	for (auto [b, a]:m)faceup(a[0]), faceup(a[1]);
}

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:8:47: error: 'std::map<char, std::vector<int> >::mapped_type' {aka 'class std::vector<int>'} has no member named 'pb'
    8 |         for (int i=1; i<=50; ++i)m[faceup(i)].pb(i);
      |                                               ^~