fork download
  1. int main()
  2. {
  3. char * p = "abc";
  4. as;
  5. return 0;
  6. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:3:13: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  char * p = "abc";
             ^
prog.cpp:4:2: error: ‘as’ was not declared in this scope
  as;
  ^
prog.cpp:3:9: warning: unused variable ‘p’ [-Wunused-variable]
  char * p = "abc";
         ^
stdout
Standard output is empty