제출 #498220

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

using namespace std;

int main()
{
    int a, b, c;
    
    cin >> a; 
    cin >> b >> c; 
    
    if (b < 0)
    {
        cout << "0"; 
    }
    
    else 
    {
        cout << "1"; 
    }
}

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

/usr/bin/ld: /tmp/cc7DK5Bn.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccgbvoeq.o:shoes.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/cc7DK5Bn.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