제출 #1185621

#제출 시각아이디문제언어결과실행 시간메모리
1185621TroySer크레이피쉬 글쓰는 기계 (IOI12_scrivener)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; typedef int ll; vector<string> states; void Init() { return; } void TypeLetter(char L) { string currentString = states[states.size() - 1]; currentString.push_back(L); states.push_back(currentString); } void UndoCommands(int U) { ll currSZ = states.size(); states.push_back(states[currSZ - U + 1]); } char GetLetter(int P) { ll currSZ = states.size(); return states[currSZ][P]; } int main() { }

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

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