Compile Error

foo.cc: In function ‘int dfs(int)’:
foo.cc:6:14: error: expected ‘]’ before ‘;’ token
    6 |         f[x=1;]
      |              ^
      |              ]
foo.cc:6:15: error: expected primary-expression before ‘]’ token
    6 |         f[x=1;]
      |               ^
foo.cc:7:21: error: ‘i’ was not declared in this scope
    7 |         for(int i=1;i<=x/2;i++)f[x]=dfs(i);
      |                     ^

信息

递交者
类型
递交
题目
P2700 伯罗奔尼撒箭阵
语言
C++
递交时间
2026-05-02 09:15:37
评测时间
2026-05-02 09:15:37
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes