답안 #1018064

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1018064 2024-07-09T13:37:17 Z kym 축구 경기장 (IOI23_soccer) C++17
컴파일 오류
0 ms 0 KB
#include "soccer.h"
#include <cassert>
#include <cstdio>
#include <vector>

int main()
{
    int N;
    assert(1 == scanf("%d", &N));
    std::vector<std::vector<int>> F(N, std::vector<int>(N));
    for (int i = 0; i < N; i++)
    {
        for (int j = 0; j < N; j++)
        {
            assert(1 == scanf("%d", &F[i][j]));
        }
    }
    fclose(stdin);

    int res = biggest_stadium(N, F);

    printf("%d\n", res);
    fclose(stdout);
    return 0;
}

Compilation message

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