QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#483334#7112. XOR CliqueHuangHanShengCompile Error//C++20270b2024-07-18 15:52:412024-07-18 15:52:43

详细

answer.code:1:5: error: ‘unordered_map’ does not name a type
    1 |     unordered_map<int, int> count_map;
      |     ^~~~~~~~~~~~~
answer.code:4:5: error: expected unqualified-id before ‘for’
    4 |     for (int i = 1; i <= n; i++) {
      |     ^~~
answer.code:4:21: error: ‘i’ does not name a type
    4 |     for (int i = 1; i <= n; i++) {
      |                     ^
answer.code:4:29: error: ‘i’ does not name a type
    4 |     for (int i = 1; i <= n; i++) {
      |                             ^
answer.code:9:5: error: expected unqualified-id before ‘for’
    9 |     for (const auto& pair : count_map) {
      |     ^~~