Compile Error
/in/foo.cc: In function 'int main()':
/in/foo.cc:7:50: error: expected primary-expression before '<' token
    7 |         cout<<fixed<<setprecision(2)<<"C="<<n+a<<<" "<<"S="<<n*a;
      |                                                  ^
/in/foo.cc:7:54: error: invalid operands of types 'const char [2]' and 'const char [3]' to binary 'operator<<'
    7 |         cout<<fixed<<setprecision(2)<<"C="<<n+a<<<" "<<"S="<<n*a;
      |                                                   ~~~^~~~~~
      |                                                   |    |
      |                                                   |    const char [3]
      |                                                   const char [2]
  信息
- 递交者
- 类型
- 递交
- 题目
- P1684 计算长方形的半周长和面积
- 语言
- C++
- 递交时间
- 2025-10-31 20:34:41
- 评测时间
- 2025-10-31 20:34:41
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes