Compile Error
/in/foo.cc: In member function 'void Counter::increment() const': /in/foo.cc:13:30: error: increment of member 'Counter::cnt' in read-only object 13 | void increment() const { cnt++; } | ^~~
信息
- 递交者
- 类型
- 自测
- 语言
- C++
- 递交时间
- 2025-05-25 00:00:07
- 评测时间
- 2025-05-25 00:00:07
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes