Compile Error
/in/foo.cc: In function 'int main()':
/in/foo.cc:10:5: error: expected ',' or ';' before 'if'
10 | if (x*x*x+y*y*y+z*z*z==m)
| ^~
/in/foo.cc:12:5: error: 'else' without a previous 'if'
12 | else
| ^~~~
/in/foo.cc:7:9: warning: unused variable 'x' [-Wunused-variable]
7 | int x=m/100;
| ^
/in/foo.cc:8:9: warning: unused variable 'y' [-Wunused-variable]
8 | int y=m/10%10;
| ^
/in/foo.cc:9:9: warning: unused variable 'z' [-Wunused-variable]
9 | int z=m/10/10&10
| ^
信息
- 递交者
- 类型
- 递交
- 题目
- P1017 contest1-3 水仙花数
- 比赛
- 2026-11-13 C++实测1
- 语言
- C++
- 递交时间
- 2026-11-13 20:01:22
- 评测时间
- 2026-11-13 20:01:23
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes