Submission #79023
ソースコード
ステータス
コンパイルメッセージ
./Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
./Main.java:1: error: class, interface, or enum expected
#include <stdio.h>
^
./Main.java:4: error: class, interface, or enum expected
scanf("%d",&n);
^
./Main.java:5: error: class, interface, or enum expected
long long d[n];
^
./Main.java:6: error: class, interface, or enum expected
for(int i=0;i<n;i++){
^
./Main.java:6: error: class, interface, or enum expected
for(int i=0;i<n;i++){
^
./Main.java:6: error: class, interface, or enum expected
for(int i=0;i<n;i++){
^
./Main.java:8: error: class, interface, or enum expected
}
^
./Main.java:10: error: class, interface, or enum expected
scanf("%d",&m);
^
./Main.java:11: error: class, interface, or enum expected
for(int i=0;i<m;i++){
^
./Main.java:11: error: class, interface, or enum expected
for(int i=0;i<m;i++){
^
./Main.java:11: error: class, interface, or enum expected
for(int i=0;i<m;i++){
^
./Main.java:13: error: class, interface, or enum expected
scanf("%lld",&t);
^
./Main.java:14: error: class, interface, or enum expected
int a=0,b=n-1;
^
./Main.java:15: error: class, interface, or enum expected
while(a<=b){
^
./Main.java:18: error: class, interface, or enum expected
}else if(d[(a+b)/2]>t){
^
./Main.java:20: error: class, interface, or enum expected
}else{
^
./Main.java:22: error: class, interface, or enum expected
b=a;
^
./Main.java:23: error: class, interface, or enum expected
}
^
./Main.java:27: error: class, interface, or enum expected
}else{
^
./Main.java:29: error: class, interface, or enum expected
}
^
./Main.java:32: error: class, interface, or enum expected
}
^
22 errors
セット
テストケース