QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#527680#7120. Soccergreen_gold_dog#Compile Error//C++20462b2024-08-22 18:13:442024-08-22 18:13:44

Judging History

你现在查看的是最新测评结果

  • [2024-08-22 18:13:44]
  • 评测
  • [2024-08-22 18:13:44]
  • 提交

answer

#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;
}

Details

/usr/bin/ld: /tmp/ccQi7sRl.o: in function `main':
answer.code:(.text.startup+0x0): multiple definition of `main'; /tmp/cclhWMPm.o:implementer.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/cclhWMPm.o: in function `main':
implementer.cpp:(.text.startup+0x38c): 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/ccQi7sRl.o: in function `main':
answer.code:(.text.startup+0x22c): 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