Submission #759586

#TimeUsernameProblemLanguageResultExecution timeMemory
759586aykhnCrayfish scrivener (IOI12_scrivener)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> // author: aykhn using namespace std; typedef long long ll; #define TC int t; cin >> t; while (t--) _(); #define OPT ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); #define all(v) v.begin(), v.end() #define pii pair<int, int> #define mpr make_pair #define eb emplace_back #define pb push_back #define ts to_string #define fi first #define se second #define ins insert #define int ll #define inf 0x3F3F3F3F #define infll 0x3F3F3F3F3F3F3F3FLL #define bpc __builtin_popcount void Init() { } void TypeLetter(char L) { } void UndoCommands(int U) { } char GetLetter(int P) { x++; if (x == 1) { return 'a'; } return 'b'; }

Compilation message (stderr)

scrivener.cpp: In function 'char GetLetter(ll)':
scrivener.cpp:41:5: error: 'x' was not declared in this scope
   41 |     x++;
      |     ^