fork download
  1. struct example
  2. {
  3. static const double value = 10;
  4. };
  5.  
  6. int main() {}
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:3:33: error: 'constexpr' needed for in-class initialization of static data member 'const double example::value' of non-integral type [-fpermissive]
     static const double value = 10; 
                                 ^
stdout
Standard output is empty