Submission #379880

#TimeUsernameProblemLanguageResultExecution timeMemory
379880knightron0Memory (IOI10_memory)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "grader.h" using namespace std; void play(){ vector<int> idx[26]; for(int i= 1;i<=50;i++){ char vl = faceup(i); idx[vl-'A'].pb(i); } for(int i= 1;i<=25;i++){ for(auto j: idx[i]){ faceup(j); } } }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:9:15: error: 'class std::vector<int>' has no member named 'pb'
    9 |   idx[vl-'A'].pb(i);
      |               ^~