记录详情

Compile Error

foo.cc:6:1: error: 'define' does not name a type; did you mean 'rewind'?
 define MAX 20
 ^~~~~~
 rewind
foo.cc: In function 'int main()':
foo.cc:17:8: error: 'f' was not declared in this scope
 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
 f[i][0]=1;f[i][1]=1;//有一个盘子和没有有盘子的放法:1
 ^
foo.cc:37:1: error: 'f' was not declared in this scope
 f[0][j]=1; f[1][j]=1;//有一个苹果和没有苹果的放法:1
 ^
foo.cc:45:1: error: 'f' was not declared in this scope
 f[i][j]=f[i][j-1]+f[i-j][j];
 ^
foo.cc:49:1: error: 'f' was not declared in this scope
 f[i][j]=f[i][i]; 
 ^
foo.cc:52:8: error: 'f' was not declared in this scope
 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]
 scanf("%d",&t);
 ~~~~~^~~~~~~~~
foo.cc:18: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-03-10 15:18:55
评测时间
2021-03-10 15:18:55
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes