제출 #1310231

#제출 시각아이디문제언어결과실행 시간메모리
1310231em4ma2가장 긴 여행 (IOI23_longesttrip)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #include "longesttrip.h" using namespace std; #define ll long long #define pb push_back vector<int> longest_trip(int n, int D) { vector<int>path; path.pb(0); for (int i=1;i<n;i++){ path.pb(i); // vector<int>ask; // ask.pb(i); // if (are_connected(path,ask)){ // path.pb(ask[0]); // } } // for (auto x:path){ // cout<<x<<" "; // }cout<<endl; return path; } signed main(){ int n,d; cin>>n>>d; vector<int>ans=longest_trip(n,d); for (auto x:ans){ cout<<x<<" "; }cout<<endl; }

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

/usr/bin/ld: /tmp/ccXGu0NE.o: in function `main':
stub.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccuJQpUT.o:longesttrip.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status