Submission #1177718

#TimeUsernameProblemLanguageResultExecution timeMemory
1177718alwaus424Arranging Shoes (IOI19_shoes)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define fr(m) for(int i = 0; i < m; i++) #define fro(m) for(int i=1; i<m; i++) #define _ "\n" #define nll cout<<'\n' #define ff first #define ss second #define inff (1<<30) #define srt(m) sort(m.begin(),m.end()) #define srtr(m) sort(m.rbegin(),m.rend()) #define rev(m) reverse(m.begin(),m.end()) int main() { int n; cin >> n; vector<ll> v(n*2); fr(n*2) cin >> v[i]; if (v[1] < 0) cout << 1; else cout << 0; return 0; }

Compilation message (stderr)

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