Submission #1012020

#TimeUsernameProblemLanguageResultExecution timeMemory
1012020deeraMemory (IOI10_memory)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; #include <memory.h> char faceup(int n); vector<int> cards[51]; int main() { for (int i = 1; i <= 50; i++) { cards[faceup(i) - 'A'].push_back(i); } for (auto i: cards) { if (i.size() == 2) { faceup(i[0]); faceup(i[1]); } } }

Compilation message (stderr)

/usr/bin/ld: /tmp/cc4SMzTL.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cc4rJ7GK.o:memory.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/cc4SMzTL.o: in function `main':
grader.cpp:(.text.startup+0x2f): undefined reference to `play()'
collect2: error: ld returned 1 exit status