fork download
  1. class a
  2. {
  3. public:
  4. static char const *ar[3] = { "asdf","qwer","ghjk" };
  5. };
  6.  
  7. int main()
  8. {
  9.  
  10. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:4:52: error: ‘constexpr’ needed for in-class initialization of static data member ‘const char* a::ar [3]’ of non-integral type [-fpermissive]
  static char const *ar[3] = { "asdf","qwer","ghjk" };
                                                    ^
stdout
Standard output is empty