记录详情

Compile Error

/in/foo.cc:1:1: error: 'include' does not name a type
 include <bits/stdc++.h>
 ^~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:6:5: error: 'cin' was not declared in this scope
     cin >> a >> b;
     ^~~
/in/foo.cc:7:5: error: 'cout' was not declared in this scope
     cout <<"S="<< fixed << setprecision(2) << (a * b) / 2.0 << endl;
     ^~~~
/in/foo.cc:7:19: error: 'fixed' was not declared in this scope
     cout <<"S="<< fixed << setprecision(2) << (a * b) / 2.0 << endl;
                   ^~~~~
/in/foo.cc:7:42: error: 'setprecision' was not declared in this scope
     cout <<"S="<< fixed << setprecision(2) << (a * b) / 2.0 << endl;
                                          ^
/in/foo.cc:7:64: error: 'endl' was not declared in this scope
     cout <<"S="<< fixed << setprecision(2) << (a * b) / 2.0 << endl;
                                                                ^~~~

信息

递交者
类型
递交
题目
P1042 直角三角形面积计算
语言
C++
递交时间
2021-07-06 10:09:58
评测时间
2021-07-06 10:09:58
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes