Compile Error
/in/foo.cc: In function 'int main()':
/in/foo.cc:5:17: warning: format '%i' expects argument of type 'int*', but argument 2 has type 'double*' [-Wformat=]
5 | scanf("%if",&x);
| ~^ ~~
| | |
| | double*
| int*
| %le
/in/foo.cc:11:31: error: expected ';' before '}' token
11 | y=sqrt(5*x+10)
| ^
| ;
12 | }else if{
| ~
/in/foo.cc:12:17: error: expected '(' before '{' token
12 | }else if{
| ^
| (
信息
- 递交者
- 类型
- 自测
- 语言
- C++
- 递交时间
- 2025-12-29 11:15:13
- 评测时间
- 2025-12-29 11:15:13
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes