fork(1) download
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. class Frabjous {
  6. private:
  7. string fab;
  8. public:
  9. Frabjous(const char * s = "C++") : fab(s) { }
  10. virtual void tell() { cout << fab; }
  11. };
  12.  
  13. int main() {
  14. char x[10]("1234567890");
  15. return 0;
  16. }
Compilation error #stdin compilation error #stdout 0s 3468KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:14:25: error: initializer-string for array of chars is too long [-fpermissive]
  char x[10]("1234567890");
                         ^
stdout
Standard output is empty