fork download
  1. #include <iostream>
  2. using namespace std;
  3. const int MAXN = 100000;
  4.  
  5. int main() {
  6. //freopen("output.txt", "w", stdout);
  7. cout << MAXN << " ";
  8. for (int i = 0; i < MAXN; ++i) {
  9. cout << 0 << " ";
  10. }
  11. cout << MAXN << " ";
  12. for (int i = 0; i < MAXN; ++i) {
  13. cout << 0 << " " << 1000000000000000000 << " ";
  14. }
  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
const int MAXN  = 100000;
^
Main.java:5: error: class, interface, or enum expected
int main() {
^
Main.java:8: error: class, interface, or enum expected
    for (int i = 0; i < MAXN; ++i) {
    ^
Main.java:8: error: class, interface, or enum expected
    for (int i = 0; i < MAXN; ++i) {
                    ^
Main.java:8: error: class, interface, or enum expected
    for (int i = 0; i < MAXN; ++i) {
                              ^
Main.java:10: error: class, interface, or enum expected
    }
    ^
Main.java:12: error: class, interface, or enum expected
    for (int i = 0; i < MAXN; ++i) {
    ^
Main.java:12: error: class, interface, or enum expected
    for (int i = 0; i < MAXN; ++i) {
                    ^
Main.java:12: error: class, interface, or enum expected
    for (int i = 0; i < MAXN; ++i) {
                              ^
Main.java:14: error: class, interface, or enum expected
    }
    ^
12 errors
stdout
Standard output is empty