Submission #827921

#TimeUsernameProblemLanguageResultExecution timeMemory
827921smatcsuArranging Shoes (IOI19_shoes)C++17
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> #define ll long long using namespace std; ll count_swaps(vector<ll> v){ if(abs(v[0])==v[1] and v[0]<=0 and v[1]>=0) return 0; else{ if(abs(v[1])==v[0] and v[1]<=0 and v[0]>=0) return 1; else return -1; } }

Compilation message (stderr)

/usr/bin/ld: /tmp/cclRqJj5.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