제출 #211031

#제출 시각아이디문제언어결과실행 시간메모리
211031_Ice_Tea_Arranging Shoes (IOI19_shoes)C++14
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h>
#define LLI long long int
#define pii pair<int,int>
#define fst first
#define sec second
#define ULTRA 2134567890
#define de(x) if(x!=0 && MODE==x)
#define MODE 1
using namespace std;

int count_swaps( int S[])
{
    if( S[0] > 0)
        return 0;
    else
        return -1;
}

int main()
{
    int i,j;

    return 0;
}

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

shoes.cpp: In function 'int main()':
shoes.cpp:21:9: warning: unused variable 'i' [-Wunused-variable]
     int i,j;
         ^
shoes.cpp:21:11: warning: unused variable 'j' [-Wunused-variable]
     int i,j;
           ^
/tmp/ccdMVEtq.o: In function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/ccQbVlEv.o:shoes.cpp:(.text.startup+0x0): first defined here
/tmp/ccdMVEtq.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