제출 #1135390

#제출 시각아이디문제언어결과실행 시간메모리
1135390thinkin나일강 (IOI24_nile)C++17
컴파일 에러
0 ms0 KiB
// https://oj.uz/problem/view/IOI24_nile

#include <bits/stdc++.h>

using namespace std;

int main() {
    int n, q;
    cin >> n;

    vector<int> w(n), a(n), b(n); 
    for (int i=0; i<n; i++) {
        cin >> w[i] >> a[i] >> b[i];
    }

    cin >> q;
    vector<int> e(q);
    for (int i=0; i<q; i++) {
        cin >> e[i];
    }

    cout << "test";
}

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

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