Skip to content

Instantly share code, notes, and snippets.

@sasha-s
Created January 7, 2018 07:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sasha-s/46048e5ccc1ed08916545864ce2a1611 to your computer and use it in GitHub Desktop.
Save sasha-s/46048e5ccc1ed08916545864ce2a1611 to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
void operator"" _x(decltype(0ull)) {
try {
cout << 1001 - (cin.iword(0)-- + 1000 ?: (throw(""), 7)) << " ";
} catch (...) {
return; } 0_x; cerr << 1004 - clog.xalloc() << " ";
}
0_x;
cerr << 999 + 2 + --errno << " ";
}
int main() { 1_x; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment