记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:16:6: error: expected primary-expression before 'if'
   16 |      if(b+d+f>0)
      |      ^~
/in/foo.cc:23:30: error: lvalue required as left operand of assignment
   23 |         if (a*d*e+b*c*e+a*c*f-b*d*f=0)
      |             ~~~~~~~~~~~~~~~~~^~~~~~
/in/foo.cc:28:30: error: cannot convert 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} to 'char' in assignment
   28 |    cout<<a+c+e<<x<<b+d+f<<"i"<<endl;
      |    ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
      |                              |
      |                              std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}

信息

递交者
类型
递交
题目
P1015 contest1-5 复数类的算术、赋值运算符的重载
比赛
2026-11-13 C++实测1
语言
C++
递交时间
2026-11-13 20:47:08
评测时间
2026-11-13 20:47:08
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes