제출 #1184996

#제출 시각아이디문제언어결과실행 시간메모리
1184996starnightsnow크레이피쉬 글쓰는 기계 (IOI12_scrivener)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; vector<char> ar; void Init() { return; } void TypeLetter(char L) { ar.push_back(L); } void UndoCommands(int U) { return; } char GetLetter(int P) { return ar[P]; } int main() { Init(); TypeLetter('a'); TypeLetter('b'); cout << GetLetter(1); TypeLetter('d'); cout << GetLetter(2); TypeLetter('e'); TypeLetter('c'); cout << GetLetter(2); cout << GetLetter(2); }

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

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