Compile Error

/in/foo.cc: In function 'void dfs()':
/in/foo.cc:9:8: error: too many arguments to function 'void dfs()'
    9 |     dfs(a[x][1]);
      |     ~~~^~~~~~~~~
/in/foo.cc:5:6: note: declared here
    5 | void dfs(){
      |      ^~~
/in/foo.cc:10:8: error: too many arguments to function 'void dfs()'
   10 |     dfs(a[x][2]);
      |     ~~~^~~~~~~~~
/in/foo.cc:5:6: note: declared here
    5 | void dfs(){
      |      ^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:18:8: error: too many arguments to function 'void dfs()'
   18 |     dfs(1);
      |     ~~~^~~
/in/foo.cc:5:6: note: declared here
    5 | void dfs(){
      |      ^~~
/in/foo.cc:22:14: error: expected '}' at end of input
   22 |     return 0;
      |              ^
/in/foo.cc:14:1: note: to match this '{'
   14 | {
      | ^

信息

递交者
类型
递交
题目
P2192 二叉树的深度和宽度x12_6
语言
C++
递交时间
2026-02-25 23:19:20
评测时间
2026-02-25 23:19:20
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes