Submission #314076

#TimeUsernameProblemLanguageResultExecution timeMemory
314076asifthegreatArranging Shoes (IOI19_shoes)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "shoes.h" #define int long long using namespace std; long long count_swaps(std::vector<int> s) { int n = s.size(); if(n == 2){ if(s[0] < s[1])return 0; return 1; }else{ int k = n/2 -1 ; long long ans = k*(k+1)/2; return ans; } }

Compilation message (stderr)

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