Submission #633809

#TimeUsernameProblemLanguageResultExecution timeMemory
633809ZflopMemory (IOI10_memory)C++14
Compilation error
0 ms0 KiB
#include "memory.h" #include "grader.h" #include <stdio.h> #include <stdlib.h> #include <vector> #include <set> void play() { int i; 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; }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:14: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'
   14 |     A[b - 'A'].ins(i);
      |                ^~~
memory.cpp:9:8: warning: unused variable 'i' [-Wunused-variable]
    9 |    int i;
      |        ^