Compile Error
foo.cc: In function 'int main()': foo.cc:11:7: error: 'INT_MAX' was not declared in this scope x=INT_MAX; ^~~~~~~ foo.cc:11:7: note: suggested alternative: 'TMP_MAX' x=INT_MAX; ^~~~~~~ TMP_MAX foo.cc:10:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] { scanf("%d%d",&n,&m);if (m>13) {printf("0");return 0;}x=0;for (i=1;i<=m;i++) x+=i*i*i;if (x>n){printf("0");return 0;} ~~~~~^~~~~~~~~~~~~~
信息
- 递交者
- 类型
- 递交
- 题目
- P1297 生日蛋糕
- 语言
- C++
- 递交时间
- 2021-01-26 04:47:14
- 评测时间
- 2021-01-26 04:47:14
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes