fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main(void) { cout << "It's working" << endl; }/* package whatever; // don't place package name! */
  4.  
  5. import java.util.*;
  6. import java.lang.*;
  7. import java.io.*;
  8.  
  9. /* Name of the class has to be "Main" only if the class is public. */
  10. class Ideone
  11. {
  12. public static void main (String[] args) throws java.lang.Exception
  13. {
  14. // your code goes here
  15. }
  16. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: illegal character: '#'
#include <iostream>
^
Main.java:1: error: class, interface, or enum expected
#include <iostream>
         ^
Main.java:3: error: class, interface, or enum expected
int main(void) { cout << "It's working" << endl; }/* package whatever; // don't place package name! */
^
Main.java:3: error: class, interface, or enum expected
int main(void) { cout << "It's working" << endl; }/* package whatever; // don't place package name! */
                                                 ^
4 errors
stdout
Standard output is empty