제출 #398622

#제출 시각아이디문제언어결과실행 시간메모리
398622cpp219크레이피쉬 글쓰는 기계 (IOI12_scrivener)C++17
컴파일 에러
0 ms0 KiB
#pragma GCC optimization "O2" #pragma GCC optimization "unroll-loop" #pragma GCC target ("avx2") //#include "" #include<bits/stdc++.h> #include <ext/rope> #define ll long long #define ld long double #define fs first #define sc second using namespace std; typedef pair<ll,ll> LL; const ll N = 1e6 + 9; const ll inf = 1e16 + 7; __gnu_cxx::crope s[1000100]; void Init(){} ll id = 0; void TypeLetter(char L){ id++; s[id] = s[id - 1]; s[id].push_back(L); } void UndoCommands(ll U){ id++; s[id] = s[id - U - 1]; } char GetLetter(int P) { return s[id][P]; }

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

scrivener.cpp:1: warning: ignoring #pragma GCC optimization [-Wunknown-pragmas]
    1 | #pragma GCC optimization "O2"
      | 
scrivener.cpp:2: warning: ignoring #pragma GCC optimization [-Wunknown-pragmas]
    2 | #pragma GCC optimization "unroll-loop"
      | 
/tmp/ccXFz5Xt.o: In function `main':
grader.cpp:(.text.startup+0x15f): undefined reference to `UndoCommands(int)'
collect2: error: ld returned 1 exit status