Submission #687815

#TimeUsernameProblemLanguageResultExecution timeMemory
687815grossly_overconfidentMemory (IOI10_memory)C++17
Compilation error
0 ms0 KiB
#include "grader.h"
#include "memory.h"
#include <bits/stdc++.h>
using namespace std;
void play() {
    map<char, vector<int>> v;
    faceup();
    string s = "abcdefghijklmnopqrstuvwxyz";
    for (int i = 1; i <= 50; ++i) {
        char r = faceup(i);
        v[r].push_back(i);
    }
    for (char j : s) {
        for (int k : v[j]) {
            faceup(k);
        }
    }
   
}

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:7:12: error: too few arguments to function 'char faceup(int)'
    7 |     faceup();
      |            ^
In file included from memory.cpp:1:
grader.h:1:6: note: declared here
    1 | char faceup(int C);
      |      ^~~~~~