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:3: error: class, interface, or enum expected
int main()
^
/in/Main.java:6: error: class, interface, or enum expected
	cin>>r1>>r2;
	^
/in/Main.java:7: error: class, interface, or enum expected
	R=1/(1/r1+1/r2);
	^
/in/Main.java:8: error: class, interface, or enum expected
	printf("%.2f",R);
	^
/in/Main.java:9: error: class, interface, or enum expected
	return 0;
	^
/in/Main.java:10: error: class, interface, or enum expected
}
^
8 errors

信息

递交者
类型
递交
题目
P2319 1.3.10:计算并联电阻的阻值
语言
Java
递交时间
2024-04-22 19:44:27
评测时间
2024-04-22 19:44:27
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes