제출 #286223

#제출 시각아이디문제언어결과실행 시간메모리
286223BeanZArranging Shoes (IOI19_shoes)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
#include "shoes.h"
 
using namespace std;
 
#define ll long long
#define endl '\n'
 
const int N = 2e5 + 5;
ll a[200005];
ll count_swap(vector<int> s){
        ll now = 0, ans = 0;
        int n = s.size() / 2;
        for (int i = 0; i < (2 * n); i++){
                if (s[i] < 0){
                        ans = ans + abs(i - now);
                        now += 2;
                }
        }
        return ans;
}
/*
int main(){
        ios_base::sync_with_stdio(false);
        cin.tie(0);
        if (fopen("VietCT.INP", "r")){
                freopen("VietCT.INP", "r", stdin);
                freopen("VietCT.OUT", "w", stdout);
        }
        ll n;
        cin >> n;
        for (int i = 1; i <= 2 * n; i++) cin >> a[i];
        ll now = 1, ans = 0;
        for (int i = 1; i <= (2 * n); i++){
                if (a[i] < 0){
                        ans = ans + abs(i - now);
                        now += 2;
                }
        }
        cout << ans;
}
*/
/*
*/

컴파일 시 표준 에러 (stderr) 메시지

/tmp/cco2HlV6.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