记录详情

Compile Error

/in/foo.cc:3:2: error: invalid preprocessing directive #incliude
 #incliude <cmath>
  ^~~~~~~~
/in/foo.cc:5:24: error: 'b' has not been declared
 float triangle(float a,b,c){
                        ^
/in/foo.cc:5:26: error: 'c' has not been declared
 float triangle(float a,b,c){
                          ^
/in/foo.cc: In function 'float triangle(float, int, int)':
/in/foo.cc:6:13: error: 'b' was not declared in this scope
  float p=(a+b+c)/2;
             ^
/in/foo.cc:6:15: error: 'c' was not declared in this scope
  float p=(a+b+c)/2;
               ^
/in/foo.cc:7:34: error: 'sqrt' was not declared in this scope
  float S=sqrt(p*(p-a)*(p-b)*(p-c));
                                  ^

信息

递交者
类型
递交
题目
计算椎体表面积
语言
C++
递交时间
2024-05-29 20:05:11
评测时间
2024-05-29 20:05:11
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes