Submission #1199110

#TimeUsernameProblemLanguageResultExecution timeMemory
1199110AMel0nCrayfish scrivener (IOI12_scrivener)C++20
Compilation error
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); // }

Compilation message (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));
      |                       ^~~~~~