Compile Error

foo.cc: In function 'int main()':
foo.cc:9:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
       if(j+i<=n)
       ^~
foo.cc:11:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
    dp[i+1][j+1]+=dp[i][j];
    ^~
foo.cc:5:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d %d",&n,&m);
     ~~~~~^~~~~~~~~~~~~~~
/tmp/ccZdeMcA.o: In function `main':
foo.cc:(.text.startup+0x5): relocation truncated to fit: R_X86_64_PC32 against symbol `m' defined in .bss section in /tmp/ccZdeMcA.o
foo.cc:(.text.startup+0xe): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccZdeMcA.o
foo.cc:(.text.startup+0x27): relocation truncated to fit: R_X86_64_PC32 against symbol `m' defined in .bss section in /tmp/ccZdeMcA.o
foo.cc:(.text.startup+0x38): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccZdeMcA.o
/tmp/ccZdeMcA.o: In function `_GLOBAL__sub_I_n':
foo.cc:(.text.startup+0xf3): relocation truncated to fit: R_X86_64_PC32 against `.bss'
foo.cc:(.text.startup+0x111): relocation truncated to fit: R_X86_64_PC32 against `.bss'
collect2: error: ld returned 1 exit status
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1193 小邹切蛋糕
语言
C++
递交时间
2021-08-05 19:43:33
评测时间
2021-08-05 19:43:33
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes