QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#483334#7112. XOR CliqueHuangHanShengCompile Error//C++20270b2024-07-18 15:52:412024-07-18 15:52:43

Details

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) {
      |     ^~~