제출 #965354

#제출 시각아이디문제언어결과실행 시간메모리
965354SyriusArranging Shoes (IOI19_shoes)C++14
컴파일 에러
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;
}

컴파일 시 표준 에러 (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