fork download
  1. class root
  2. {
  3. public void static main(String [] args)
  4. {
  5. // Prevent CID 28204
  6. String parent = "ALA";
  7. System.out.println( (parent != null) ? parent.concat("/") : null);
  8. }
  9. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:3: error: expected `:' before ‘void’
prog.cpp:3: error: ‘String’ has not been declared
prog.cpp:3: error: expected ‘,’ or ‘...’ before ‘args’
prog.cpp: In static member function ‘static void root::main(int*)’:
prog.cpp:6: error: ‘String’ was not declared in this scope
prog.cpp:6: error: expected `;' before ‘parent’
prog.cpp:7: error: ‘System’ was not declared in this scope
prog.cpp:7: error: ‘parent’ was not declared in this scope
prog.cpp:7: error: ‘null’ was not declared in this scope
prog.cpp: At global scope:
prog.cpp:8: error: expected unqualified-id at end of input
stdout
Standard output is empty