Compile Error

./Main.java:1: error: illegal character: '#'
#include <iostream>
^
./Main.java:1: error: class, interface, enum, or record expected
#include <iostream>
         ^
./Main.java:2: error: illegal character: '#'
#include <cstdio>
^
./Main.java:3: error: illegal character: '#'
#include <cstring>
^
./Main.java:7: error: class, interface, enum, or record expected
int main()
^
./Main.java:10: error: class, interface, enum, or record expected
	cin>>A>>B;
	^
./Main.java:11: error: class, interface, enum, or record expected
	for(i=A;i<=B;i++)
	^
./Main.java:11: error: class, interface, enum, or record expected
	for(i=A;i<=B;i++)
	        ^
./Main.java:11: error: class, interface, enum, or record expected
	for(i=A;i<=B;i++)
	             ^
./Main.java:13: error: class, interface, enum, or record expected
		for(j=i;j!=0;j=j/10)
		        ^
./Main.java:13: error: class, interface, enum, or record expected
		for(j=i;j!=0;j=j/10)
		             ^
./Main.java:18: error: class, interface, enum, or record expected
				count++;
				^
./Main.java:19: error: class, interface, enum, or record expected
				break;
				^
./Main.java:20: error: class, interface, enum, or record expected
			}
			^
./Main.java:24: error: class, interface, enum, or record expected
	for(i=0;i<count;i++)
	^
./Main.java:24: error: class, interface, enum, or record expected
	for(i=0;i<count;i++)
	        ^
./Main.java:24: error: class, interface, enum, or record expected
	for(i=0;i<count;i++)
	                ^
./Main.java:27: error: class, interface, enum, or record expected
		c++;
		^
./Main.java:28: error: class, interface, enum, or record expected
		if(c%5==0)
		^
./Main.java:31: error: class, interface, enum, or record expected
		}
		^
./Main.java:35: error: class, interface, enum, or record expected
}
^
21 errors
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1120 出现数字3的数
语言
Java
递交时间
2021-12-08 20:46:10
评测时间
2021-12-08 20:46:10
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes