QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#388783#3729. 有向无环图ucup-team1383Compile Error//C++98898b2024-04-13 19:43:222024-04-13 19:43:22

详细

answer.code: In function ‘void solve()’:
answer.code:30:34: error: ‘a’ does not name a type
   30 |                         for(auto a : mp[x]) {
      |                                  ^
answer.code:35:26: error: expected ‘;’ before ‘}’ token
   35 |                         }
      |                          ^
      |                          ;
   36 |                 }
      |                 ~         
answer.code:36:17: error: expected primary-expression before ‘}’ token
   36 |                 }
      |                 ^
answer.code:35:26: error: expected ‘;’ before ‘}’ token
   35 |                         }
      |                          ^
      |                          ;
   36 |                 }
      |                 ~         
answer.code:36:17: error: expected primary-expression before ‘}’ token
   36 |                 }
      |                 ^
answer.code:35:26: error: expected ‘)’ before ‘}’ token
   35 |                         }
      |                          ^
      |                          )
   36 |                 }
      |                 ~         
answer.code:30:28: note: to match this ‘(’
   30 |                         for(auto a : mp[x]) {
      |                            ^
answer.code:36:17: error: expected primary-expression before ‘}’ token
   36 |                 }
      |                 ^