记录详情

Compile Error

/in/foo.cc: In member function 'void Quadrilateral::getEdge()':
/in/foo.cc:19:34: error: 'pow' was not declared in this scope
         a = pow((pow((a1 - b1), 2) + pow((a2 - b2), 2)), 0.5);
                                  ^
/in/foo.cc:19:61: error: 'pow' was not declared in this scope
         a = pow((pow((a1 - b1), 2) + pow((a2 - b2), 2)), 0.5);
                                                             ^
/in/foo.cc:19:61: error: redeclaration of '<typeprefixerror>pow'
/in/foo.cc:19:34: note: previous declaration '<typeprefixerror>pow'
         a = pow((pow((a1 - b1), 2) + pow((a2 - b2), 2)), 0.5);
                                  ^
/in/foo.cc: In member function 'double Quadrilateral::getArea2()':
/in/foo.cc:33:43: error: 'pow' was not declared in this scope
         double sin1 = pow((1 - pow(cos1, 2)), 0.5);
                                           ^
/in/foo.cc:33:50: error: 'pow' was not declared in this scope
         double sin1 = pow((1 - pow(cos1, 2)), 0.5);
                                                  ^
/in/foo.cc:33:50: error: redeclaration of '<typeprefixerror>pow'
/in/foo.cc:33:43: note: previous declaration '<typeprefixerror>pow'
         double sin1 = pow((1 - pow(cos1, 2)), 0.5);
                                           ^
/in/foo.cc: In member function 'int Trapezoid::check()':
/in/foo.cc:63:5: warning: control reaches end of non-void function [-Wreturn-type]
     }
     ^
/in/foo.cc: In member function 'int Parallelogram::check()':
/in/foo.cc:85:5: warning: control reaches end of non-void function [-Wreturn-type]
     }
     ^
/in/foo.cc: In member function 'int Rectangle::check()':
/in/foo.cc:107:5: warning: control reaches end of non-void function [-Wreturn-type]
     }
     ^
/in/foo.cc: In member function 'int Square::check()':
/in/foo.cc:128:5: warning: control reaches end of non-void function [-Wreturn-type]
     }
     ^

信息

递交者
类型
自测
题目
P1004 11.8 Quadrilateral_Inheritance
语言
C++
递交时间
2020-03-14 23:05:08
评测时间
2020-03-14 23:05:08
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes