← Back to Challenge List

Submission #85155

上傳編號85155
上傳時間2019-11-04 20:07:56
題目 愛情三角理論 (測試題)
使用者 anonymous
總得分 0, CE in 0 ms
# State Runtime Memory
0 CE 0 ms 0
1 CE 0 ms 0
2 CE 0 ms 0
3 CE 0 ms 0
Judge Information
./test.cpp:2:5: error: 'cin' does not name a type
cin>>r>>c>>f;
^
./test.cpp:3:5: error: 's' does not name a type
s=(r+c+f)/2;
^
./test.cpp:4:5: error: 'a' does not name a type
a=sqrt(s*(s-r)*(s-c)*(s-f));
^
./test.cpp:5:11: error: expected constructor, destructor, or type conversion before '(' token
printf("%.4f\n",a);
^
./test.cpp:16:5: error: expected unqualified-id before 'return'
return 0;
^
./test.cpp:17:1: error: expected declaration before '}' token
}
^