Submission #965354

#TimeUsernameProblemLanguageResultExecution timeMemory
965354SyriusArranging Shoes (IOI19_shoes)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "shoes.h" using namespace std; #define int long long #define ll long long #define ff first #define ss second #define pint pair < int , int > #define fast ios_base::sync_with_stdio(NULL); cin.tie(NULL) const int inf = 1e9 + 9; const int mxn = 2e5 + 2; const int mod = 1e9 + 7; ll count_swaps(vector < int > v) { int n = v.size() / 2; return (n - 1) * n / 2; }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccuFjcXG.o: in function `main':
grader.cpp:(.text.startup+0x29d): undefined reference to `count_swaps(std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status