Compile Error

./Main.java:1: error: illegal character: '#'
#include <iostream>
^
./Main.java:1: error: class, interface, enum, or record expected
#include <iostream>
         ^
./Main.java:5: error: class, interface, enum, or record expected
int f(int n)
^
./Main.java:10: error: class, interface, enum, or record expected
  }
  ^
./Main.java:14: error: class, interface, enum, or record expected
  }
  ^
./Main.java:21: error: class, interface, enum, or record expected
	cin>>n;
	^
./Main.java:22: error: class, interface, enum, or record expected
	g=f(n);
	^
./Main.java:23: error: class, interface, enum, or record expected
	cout<<g;
	^
./Main.java:25: error: class, interface, enum, or record expected
    return 0;	
    ^
./Main.java:26: error: class, interface, enum, or record expected
} 
^
10 errors
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1123 猴子吃桃
语言
Java
递交时间
2021-12-12 14:16:18
评测时间
2021-12-12 14:16:18
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes