/ Vijos /

记录详情

Compile Error

/in/Main.java:1: error: illegal character: '#'
#include <iostream>
^
/in/Main.java:1: error: class, interface, or enum expected
#include <iostream>
         ^
/in/Main.java:2: error: illegal character: '#'
#include <algorithm>
^
/in/Main.java:6: error: class, interface, or enum expected
int n;
^
/in/Main.java:7: error: class, interface, or enum expected
long long num[1000000]={0};
^
/in/Main.java:9: error: class, interface, or enum expected
int main()
^
/in/Main.java:12: error: class, interface, or enum expected
    int i;
    ^
/in/Main.java:13: error: class, interface, or enum expected
    for(i=0;i<n;i++)
    ^
/in/Main.java:13: error: class, interface, or enum expected
    for(i=0;i<n;i++)
            ^
/in/Main.java:13: error: class, interface, or enum expected
    for(i=0;i<n;i++)
                ^
/in/Main.java:16: error: class, interface, or enum expected
    }
    ^
/in/Main.java:18: error: class, interface, or enum expected
    for(i=0;i<n;i+=2)
    ^
/in/Main.java:18: error: class, interface, or enum expected
    for(i=0;i<n;i+=2)
            ^
/in/Main.java:18: error: class, interface, or enum expected
    for(i=0;i<n;i+=2)
                ^
/in/Main.java:23: error: class, interface, or enum expected
            break;
            ^
/in/Main.java:24: error: class, interface, or enum expected
        }
        ^
/in/Main.java:27: error: class, interface, or enum expected
}
^
17 errors

信息

递交者
类型
递交
题目
P1684 丢失的筷子
语言
Java
递交时间
2021-02-09 13:15:10
评测时间
2021-02-09 13:15:10
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes