제출 #154342

#제출 시각아이디문제언어결과실행 시간메모리
154342BlackBullArranging Shoes (IOI19_shoes)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>

using namespace std;

int main()
{
    ios::sync_with_stdio(0); cin.tie(0);
    int n; cin >> n;
    int m; m=2*n;
    vector<int> S(m);
    for(int i=0;i<m;i++)
    {
        cin >> S[i];
    }
    if(S[0]<S[1]){
        int a;a=0;
        cout << a;
    }
    else
    {
       int b;b=1;
       cout << b;
    }

    return 0;
    }

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

/tmp/ccBdiGLo.o: In function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/ccS5t1q8.o:shoes.cpp:(.text.startup+0x0): first defined here
/tmp/ccBdiGLo.o: In function `main':
grader.cpp:(.text.startup+0x272): undefined reference to `count_swaps(std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status