제출 #894529

#제출 시각아이디문제언어결과실행 시간메모리
894529ozner77Arranging Shoes (IOI19_shoes)C++17
컴파일 에러
0 ms0 KiB
#include "shoes.h"
#include "bits/stdc++.h"
using namespace std;
long long count_swaps(std::vector<int> s) {
	int swaps;
	if(s[0]<0){
        swaps=0;
	}else{
        swaps=1;
	}
	return swaps;
}
int main(){
    int a,b;
    vector<int> V;
    cin>>a;
    for(int i=0;i<a*2;i++){
        cin>>b;
        V.push_back(b);
    }
    cout << count_swaps(V);
}

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

/usr/bin/ld: /tmp/ccTbrP4i.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccJvLf4i.o:shoes.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status