Submission #1207756

#TimeUsernameProblemLanguageResultExecution timeMemory
1207756jasonicThe Collection Game (BOI21_swaps)C++20
Compilation error
0 ms0 KiB
// #include "swaps.h" #include <bits/stdc++.h> using namespace std; #define ll long long #define fastIO cin.tie(0); ios::sync_with_stdio(false) #define cerr if(1) cout vector<int> a; void schedule(int i, int j) { cerr << i << ' ' << j << '\n'; } void visit() {cerr << "called visit\n";}; void interact(int i, int j) { schedule(i+1, j+1); } void solve(int n, int v) { a = vector<int>(n); for(int i = 0; i < n; i++) a[i] = i+1; for(int i = 0; i < n; i++) { for(int j = n-1-(i%2); j > 0; j -= 2) { interact(j-1, j); } visit(); } // answer(a); } int main() { solve(6, 10000); return 0; }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccsZCzBG.o: in function `schedule(int, int)':
grader.cpp:(.text+0x50): multiple definition of `schedule(int, int)'; /tmp/ccn8yVoR.o:swaps.cpp:(.text+0x0): first defined here
/usr/bin/ld: /tmp/ccsZCzBG.o: in function `visit()':
grader.cpp:(.text+0x1e0): multiple definition of `visit()'; /tmp/ccn8yVoR.o:swaps.cpp:(.text+0x90): first defined here
/usr/bin/ld: /tmp/ccsZCzBG.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccn8yVoR.o:swaps.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status