fork download
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int arr[5], i;
  6.  
  7. for(i=0; i<5; i++)
  8. {
  9. cin>>arr[i]>>endl;
  10. }
  11.  
  12. for(i=0; i<5; i++)
  13. {
  14. cout<<arr[i]<<endl;
  15. }
  16.  
  17. return 0;
  18. }
  19.  
  20.  
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()
^
Main.java:7: error: class, interface, or enum expected
	for(i=0; i<5; i++)
	^
Main.java:7: error: class, interface, or enum expected
	for(i=0; i<5; i++)
	         ^
Main.java:7: error: class, interface, or enum expected
	for(i=0; i<5; i++)
	              ^
Main.java:10: error: class, interface, or enum expected
	}
	^
Main.java:12: error: class, interface, or enum expected
	for(i=0; i<5; i++)
	         ^
Main.java:12: error: class, interface, or enum expected
	for(i=0; i<5; i++)
	              ^
Main.java:15: error: class, interface, or enum expected
	}
	^
Main.java:18: error: class, interface, or enum expected
}
^
11 errors
stdout

Standard output is empty