fork(1) download
  1. #include <sys/mman.h>
  2. #define _p_(x) 014, PROT_READ | PROT_##x
  3. #define _m_ MAP_SHARED | MAP_ANON
  4. #define k >>030
  5. using namespace std;
  6.  
  7. int __(int _){int ___;while (!_){long *____=(long*)mmap(0,1<<_p_(WRITE),_m_,~0,0);long _____[]={1407551829,698730748,2308445627,2402472518,1629435443,3072259071,1992829027,517859840,1968663929,3640857343,336536884,2230261333,1224858193,671088766,234881024,721420288};for(;(_____[0xE]k)^(___=_);_-=~__(_____[0xB]k)){for(;___;___+=~__(_____[0xD]k)){*(_____+~-___)+=*(_____+___);}*(_+____)=*_____;}mprotect(____, 1<<_p_(EXEC));((void (*)(char*))____)((char*)____+(_____[0xF]k));};return 0;}
  8.  
  9. int main() {return __(0);}
  10.  
  11.  
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
Hello, world!