记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:20:5: error: 'unordered_map' was not declared in this scope
     unordered_map<int, int> countMap;
     ^~~~~~~~~~~~~
/in/foo.cc:20:19: error: expected primary-expression before 'int'
     unordered_map<int, int> countMap;
                   ^~~
/in/foo.cc:26:30: error: 'countMap' was not declared in this scope
         for (const auto& p : countMap) {
                              ^~~~~~~~
/in/foo.cc:34:13: error: 'countMap' was not declared in this scope
             countMap[vec[i][0]]++;
             ^~~~~~~~
/in/foo.cc:36:13: error: 'countMap' was not declared in this scope
             countMap[vec[i][0]] = 1;
             ^~~~~~~~
/in/foo.cc:42:26: error: 'countMap' was not declared in this scope
     for (const auto& p : countMap) {
                          ^~~~~~~~
/in/foo.cc: At global scope:
/in/foo.cc:53:5: error: 'cout' does not name a type
     cout << twoChildrenFamiliesCount << endl;
     ^~~~
/in/foo.cc:55:5: error: expected unqualified-id before 'return'
     return 0;
     ^~~~~~
/in/foo.cc:56:1: error: expected declaration before '}' token
 }
 ^

信息

递交者
类型
自测
语言
C++
递交时间
2024-11-16 13:31:43
评测时间
2024-11-16 13:31:43
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes