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)提供评测服务