Submission #1010519

#TimeUsernameProblemLanguageResultExecution timeMemory
1010519Muaath_5Memory (IOI10_memory)C++17
Compilation error
0 ms0 KiB
#include "memory.h" #include <bits/stdc++.h> using namespace std; int faceup(int c); vector<int> cc[51]; void play() { for (int i = 1; i <= 50; i++) cc[faceup(i)].push_back(i); for (int i = 1; i <= 50; i++) faceup(cc[i][0], cc[i][1]); }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:11:30: error: too many arguments to function 'int faceup(int)'
   11 |     faceup(cc[i][0], cc[i][1]);
      |                              ^
memory.cpp:4:5: note: declared here
    4 | int faceup(int c);
      |     ^~~~~~