제출 #1199110

#제출 시각아이디문제언어결과실행 시간메모리
1199110AMel0n크레이피쉬 글쓰는 기계 (IOI12_scrivener)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define FOR(i,N) for(ll i = 0; i < N; i++) #define all(x) (x).begin(), (x).end() #define F first #define S second vector<string> pr; void Init(){ ; } void TypeLetter(char L) { if (pr.size()) pr.push_back(pr[pr.size()-1]+L); else pr.push_back(format("{}", L)); } void UndoCommands(int U) { pr.push_back(pr[pr.size()-1-U]); } char GetLetter(int P) { return pr[pr.size()-1][P]; } // signed main() { // cin.tie(0); ios::sync_with_stdio(false); // }

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

scrivener.cpp: In function 'void TypeLetter(char)':
scrivener.cpp:17:23: error: 'format' was not declared in this scope
   17 |     else pr.push_back(format("{}", L));
      |                       ^~~~~~