记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:16:39: warning: loop variable 'entry' of type 'const std::pair<std::__cxx11::basic_string<char>, int>&' binds to a temporary constructed from type 'std::pair<const std::__cxx11::basic_string<char>, int>' [-Wrange-loop-construct]
   16 |         for (const pair<string, int>& entry : wordCount) {
      |                                       ^~~~~
/in/foo.cc:16:39: note: use non-reference type 'const std::pair<std::__cxx11::basic_string<char>, int>' to make the copy explicit or 'const std::pair<const std::__cxx11::basic_string<char>, int>&' to prevent copying
# 状态 耗时 内存占用
#1 Accepted 2ms 484.0 KiB
#2 Wrong Answer 2ms 536.0 KiB
#3 Accepted 1ms 536.0 KiB
#4 Accepted 1ms 480.0 KiB
#5 Accepted 1ms 324.0 KiB

信息

递交者
类型
递交
题目
P1057 OO11-9 set与单词统计
语言
C++
递交时间
2025-03-06 14:17:44
评测时间
2025-03-06 14:17:44
评测机
分数
80
总耗时
10ms
峰值内存
536.0 KiB