Submission #971909

#TimeUsernameProblemLanguageResultExecution timeMemory
971909StinnyArranging Shoes (IOI19_shoes)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #define int long long using namespace std; void solve() { int n; cin >> n; int a[2 * n]; for (int i = 0; i < 2 * n; i++) cin >> a[i]; cout << (a[0] < 0 ? 0 : 1); } int32_t main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); solve(); }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccMklsxq.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cctImxOs.o:shoes.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccMklsxq.o: in function `main':
grader.cpp:(.text.startup+0x2a8): undefined reference to `count_swaps(std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status