Submission #412438

#TimeUsernameProblemLanguageResultExecution timeMemory
412438abdzagMemory (IOI10_memory)C++17
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> #include<unordered_map> #include"grader.h" #define rep(i,a,b) for(int i=int(a);i<int(b);i++) #define rrep(i,a,b) for(int i=int(a);i>int(b);i--) #define all(v) v.begin(),v.end() #define trav(a,v) for(auto&a:v) #define sz(a) a.size() typedef long double ld; using namespace std; static const long long inf = 1e15; typedef long long ll; typedef unsigned long long ull; int main() { vector<char> v(50); rep(i, 0, 50)v[i] = faceup(i); rep(i, 0, 50) { rep(j, 0, 50) { if (j == i)continue; if (v[i] == v[j]) { faceup(i); faceup(j); v.erase(v.begin() + j); break; } } } }

Compilation message (stderr)

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