QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#462669#7588. Monster HunteralexalexCompile Error//C++171.6kb2024-07-03 23:54:322024-07-03 23:54:33

詳細信息

answer.code: In function ‘void dfs(int, int, std::vector<std::vector<int> >&)’:
answer.code:14:28: error: too few arguments to function ‘void dfs(int, int, std::vector<std::vector<int> >&)’
   14 |                         dfs(u, v);
      |                         ~~~^~~~~~
answer.code:9:6: note: declared here
    9 | void dfs(int v, int predok, vector<vector<int>> & g) {
      |      ^~~
answer.code: In function ‘int main()’:
answer.code:44:20: error: too few arguments to function ‘void dfs(int, int, std::vector<std::vector<int> >&)’
   44 |                 dfs(0,-1);
      |                 ~~~^~~~~~
answer.code:9:6: note: declared here
    9 | void dfs(int v, int predok, vector<vector<int>> & g) {
      |      ^~~
answer.code:56:31: error: expected primary-expression before ‘.’ token
   56 |                         } else.{
      |                               ^
answer.code:56:32: error: expected unqualified-id before ‘{’ token
   56 |                         } else.{
      |                                ^
answer.code:69:35: error: ‘f’ was not declared in this scope
   69 |                         int nxt = f(pred[i]);
      |                                   ^
answer.code:76:39: error: expected primary-expression before ‘.’ token
   76 |                                 } else.{
      |                                       ^
answer.code:76:40: error: expected unqualified-id before ‘{’ token
   76 |                                 } else.{
      |                                        ^