제출 #570223

#제출 시각아이디문제언어결과실행 시간메모리
570223Osplei도로 폐쇄 (APIO21_roads)C++17
컴파일 에러
0 ms0 KiB
#include <iostream>

using namespace std;

int main() {
  int n, u, v, w;

  cin >> n;

  for (int i=0; i<n; i++){
    cin >> u >> v;
  }

  for (int i=0; i<n; i++) cin >> w;

  cout << 0;
}

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

/usr/bin/ld: /tmp/ccsv4TaB.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccsCcJlC.o:roads.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccsv4TaB.o: in function `main':
grader.cpp:(.text.startup+0x277): undefined reference to `minimum_closure_costs(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