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: '#'
#define n 20
^
./Main.java:6: error: class, interface, enum, or record expected
int main()
^
./Main.java:9: error: class, interface, enum, or record expected
 	cin>>N;
 	^
./Main.java:10: error: class, interface, enum, or record expected
 	for(i=0;j<N;j++)
 	^
./Main.java:10: error: class, interface, enum, or record expected
 	for(i=0;j<N;j++)
 	        ^
./Main.java:10: error: class, interface, enum, or record expected
 	for(i=0;j<N;j++)
 	            ^
./Main.java:12: error: class, interface, enum, or record expected
 		for(j=0;j<N;j++)
 		        ^
./Main.java:12: error: class, interface, enum, or record expected
 		for(j=0;j<N;j++)
 		            ^
./Main.java:15: error: class, interface, enum, or record expected
		}
		^
./Main.java:18: error: class, interface, enum, or record expected
	for(i=0;i<N;i++) 
	        ^
./Main.java:18: error: class, interface, enum, or record expected
	for(i=0;i<N;i++) 
	            ^
./Main.java:21: error: class, interface, enum, or record expected
		for(j=1;j<N;j++)
		^
./Main.java:21: error: class, interface, enum, or record expected
		for(j=1;j<N;j++)
		        ^
./Main.java:21: error: class, interface, enum, or record expected
		for(j=1;j<N;j++)
		            ^
./Main.java:26: error: class, interface, enum, or record expected
			}
			^
./Main.java:29: error: class, interface, enum, or record expected
	for(k=0;k<N;k++)
	        ^
./Main.java:29: error: class, interface, enum, or record expected
	for(k=0;k<N;k++)
	            ^
./Main.java:34: error: class, interface, enum, or record expected
			min=a[0][index];
			^
./Main.java:35: error: class, interface, enum, or record expected
			for(j=1;j<N;j++)
			^
./Main.java:35: error: class, interface, enum, or record expected
			for(j=1;j<N;j++)
			        ^
./Main.java:35: error: class, interface, enum, or record expected
			for(j=1;j<N;j++)
			            ^
./Main.java:40: error: class, interface, enum, or record expected
				}
				^
./Main.java:45: error: class, interface, enum, or record expected
				num++;
				^
./Main.java:46: error: class, interface, enum, or record expected
			}
			^
./Main.java:50: error: class, interface, enum, or record expected
	return 0;
	^
./Main.java:51: error: class, interface, enum, or record expected
}
^
29 errors
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1162 马鞍点
语言
Java
递交时间
2021-12-12 18:49:12
评测时间
2021-12-12 18:49:12
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes