제출 #1288674

#제출 시각아이디문제언어결과실행 시간메모리
1288674fenlynn철로 (IOI14_rail)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(NULL); int subtask; if(!(cin>>subtask)) return 0; int n; cin>>n; vector<int> stype(n); vector<int> location(n); for(int i=0;i<n;i++){ cin>>stype[i]>>location[i]; } for(int i=0;i<n;i++){ cout<<stype[i]<<" "<<location[i]<<"\n"; } return 0; }

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

/usr/bin/ld: /tmp/cc72qPpo.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccRrwy6k.o:rail.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/cc72qPpo.o: in function `main':
grader.cpp:(.text.startup+0x29c): undefined reference to `findLocation'
collect2: error: ld returned 1 exit status