// Example program#include<iostream>#include<string>constexprintipow(int x,int n){return n >0? x *ipow(x, n -1):1;}template<char a>constexprintb8_helper(){return a -'0';}template<char a,char b,char... tail>constexprintb8_helper(){return(int)(a -'0')*ipow(8,sizeof...(tail)+1)+ b8_helper<b, tail...>();}template<char... digits>constexprintoperator""_b8(){return b8_helper<digits...>();}intmain(){int a =2121474_b8;
std::cout << a << std::endl;}