/ WHOJ /

记录详情

Compile Error

foo.cc: In function 'long long int dfs(int, int)':
foo.cc:7:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    7 |  if(dp[l][r])return dp[l][r];r;i++){
      |  ^~
foo.cc:7:30: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
    7 |  if(dp[l][r])return dp[l][r];r;i++){
      |                              ^
foo.cc:7:30: warning: statement has no effect [-Wunused-value]
foo.cc:7:32: error: 'i' was not declared in this scope
    7 |  if(dp[l][r])return dp[l][r];r;i++){
      |                                ^
foo.cc: In function 'void print(int, int)':
foo.cc:21:11: error: a function-definition is not allowed here before '{' token
   21 | int main(){
      |           ^
foo.cc:31:1: error: expected '}' at end of input
   31 | }
      | ^
foo.cc:16:24: note: to match this '{'
   16 | void print(int l,int r){
      |                        ^
正在同步测试数据,请稍后
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1301 [NOIP2003 提高组] 加分二叉树
题目数据
下载
语言
C++
递交时间
2022-07-14 20:47:45
评测时间
2022-07-14 20:47:45
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes