记录详情

Compile Error

foo.cc: In function ‘int main()’:
foo.cc:36:48: error: ‘IEndlm3’ was not declared in this scope
   36 |         Complex c1(Re1,Im1),c2(Re2,Im2),c3(Re3,IEndlm3);
      |                                                ^~~~~~~
foo.cc:37:19: error: ‘AddRe’ was not declared in this scope; did you mean ‘addRe’?
   37 |         int addRe=AddRe(c1,c2,c3),addIm=AddIm(c1,c2,c3);
      |                   ^~~~~
      |                   addRe
foo.cc:38:19: error: ‘MulRe’ was not declared in this scope; did you mean ‘mulRe’?
   38 |         int mulRe=MulRe(c1,c2,c3),mulIm=MulIm(c1,c2,c3);
      |                   ^~~~~
      |                   mulRe
foo.cc:39:12: error: ‘addIm’ was not declared in this scope
   39 |         if(addIm<0)
      |            ^~~~~
foo.cc:43:12: error: ‘mulIm’ was not declared in this scope
   43 |         if(mulIm<0)
      |            ^~~~~

信息

递交者
类型
自测
题目
P1011 OO2-1 复数类的算术、赋值运算符的重载
语言
C++
递交时间
2024-04-05 00:13:01
评测时间
2024-04-05 00:13:01
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes