Submission #965354

# Submission time Handle Problem Language Result Execution time Memory
965354 2024-04-18T11:16:09 Z Syrius Arranging Shoes (IOI19_shoes) C++14
Compilation error
0 ms 0 KB
#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

/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