QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#197601#5663. Tangle: A DAG for storing transactionsucup-team1588#Compile Error//C++983.0kb2023-10-02 17:34:492023-10-02 17:34:51

详细

answer.code:107:18: error: ‘>>’ should be ‘> >’ within a nested template argument list
  107 | vector<vector<int>> adj(N);
      |                  ^~
      |                  > >
answer.code: In function ‘void dfs(int)’:
answer.code:111:15: error: ‘x’ does not name a type
  111 |     for (auto x : adj[node]){
      |               ^
answer.code:114:6: error: expected ‘;’ before ‘}’ token
  114 |     }
      |      ^
      |      ;
  115 | }
      | ~     
answer.code:115:1: error: expected primary-expression before ‘}’ token
  115 | }
      | ^
answer.code:114:6: error: expected ‘;’ before ‘}’ token
  114 |     }
      |      ^
      |      ;
  115 | }
      | ~     
answer.code:115:1: error: expected primary-expression before ‘}’ token
  115 | }
      | ^
answer.code:114:6: error: expected ‘)’ before ‘}’ token
  114 |     }
      |      ^
      |      )
  115 | }
      | ~     
answer.code:111:9: note: to match this ‘(’
  111 |     for (auto x : adj[node]){
      |         ^
answer.code:115:1: error: expected primary-expression before ‘}’ token
  115 | }
      | ^