제출 #1177710

#제출 시각아이디문제언어결과실행 시간메모리
1177710alwaus424Arranging Shoes (IOI19_shoes)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define fr(m) for(int i = 0; i < m; i++)
#define fro(m) for(int i=1; i<m; i++)
#define _ "\n"
#define nll cout<<'\n'
#define ff first
#define ss second
#define inff (1<<30)
#define srt(m) sort(m.begin(),m.end())
#define srtr(m) sort(m.rbegin(),m.rend())
#define rev(m) reverse(m.begin(),m.end())

void solve() {
   int n; cin >> n;
   vector<ll>v(n);
    fr(n*2) cin >> v[i];
    if(v[1] < 0 ) cout << 1;
    else cout << 0;
}

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    
    // int t; 
    // cin >> t;
    // while (t--) 
        solve();

    return 0;
}

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

/usr/bin/ld: /tmp/ccPZCIJu.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccCAbvuA.o:shoes.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccPZCIJu.o: in function `main':
grader.cpp:(.text.startup+0x289): undefined reference to `count_swaps(std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status