foo.cc:6:1: error: 'define' does not name a type
6 | define MAX 20
| ^~~~~~
foo.cc: In function 'int main()':
foo.cc:17:8: error: 'f' was not declared in this scope
17 | memset(f,0,sizeof(f));
| ^
foo.cc: In function 'int Number(int, int)':
foo.cc:32:1: error: 'f' was not declared in this scope
32 | f[i][0]=1;f[i][1]=1;
| ^
foo.cc:37:1: error: 'f' was not declared in this scope
37 | f[0][j]=1; f[1][j]=1;
| ^
foo.cc:45:1: error: 'f' was not declared in this scope
45 | f[i][j]=f[i][j-1]+f[i-j][j];
| ^
foo.cc:49:1: error: 'f' was not declared in this scope
49 | f[i][j]=f[i][i];
| ^
foo.cc:51:8: error: 'f' was not declared in this scope
51 | return f[m][n];
| ^
foo.cc: In function 'int main()':
foo.cc:14:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
14 | scanf("%d",&t);
| ~~~~~^~~~~~~~~
foo.cc:18:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
18 | scanf ("%d %d", &m, &n);
| ~~~~~~^~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务