Compile Error
/in/foo.cc: In function 'int main()':
/in/foo.cc:23:9: error: invalid operands of types 'float' and 'int' to binary 'operator%'
23 | avg=sum%(n-2);
| ~~~^~~~~~
| | |
| float int
/in/foo.cc:24:15: error: 'setpricision' was not declared in this scope
24 | cout<<fixed<<setpricision(2)<<avg<<endl;
| ^~~~~~~~~~~~
信息
- 递交者
- 类型
- 递交
- 题目
- P1356 评委会打分
- 语言
- C++
- 递交时间
- 2025-03-25 17:02:29
- 评测时间
- 2025-03-25 17:02:29
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes