记录详情

Compile Error

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

信息

递交者
类型
递交
题目
P1031 s-0-2班级活动之分苹果
语言
C++
递交时间
2022-07-27 14:33:47
评测时间
2022-07-27 14:33:47
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes