记录详情

Compile Error

foo.cc:5:1: error: 'define' does not name a type; did you mean 'rewind'?
 define MAX 20
 ^~~~~~
 rewind
foo.cc: In function 'int main()':
foo.cc:15:8: error: 'f' was not declared in this scope
 memset(f,0,sizeof(f));
        ^
foo.cc: In function 'int Number(int, int)':
foo.cc:29:1: error: 'f' was not declared in this scope
 f[i][0]=1;f[i][1]=1;//有一个盘子和没有有盘子的放法:1
 ^
foo.cc:34:1: error: 'f' was not declared in this scope
 f[0][j]=1; f[1][j]=1;//有一个苹果和没有苹果的放法:1
 ^
foo.cc:42:1: error: 'f' was not declared in this scope
 f[i][j]=f[i][j-1]+f[i-j][j];
 ^
foo.cc:46:1: error: 'f' was not declared in this scope
 f[i][j]=f[i][i]; 
 ^
foo.cc:49:8: error: 'f' was not declared in this scope
 return f[m][n];
        ^
foo.cc: In function 'int main()':
foo.cc:12:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 scanf("%d",&t);
 ~~~~~^~~~~~~~~
foo.cc:16:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 scanf ("%d %d", &m, &n);
 ~~~~~~^~~~~~~~~~~~~~~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

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