求大佬帮忙看看

B2001 入门测试题目

一直显示这个Wrong Answer.wrong answer On line 1 column 1, read (ASCII -24), expected 3.
by ewf8888 @ 2023-11-04 10:06:21


“算法竞赛中要求的输出格式中,不能有多余的内容,这也包括了“请输入整数 a 和 b” 这一类的提示用户输入信息的内容。”
by Meteorium @ 2023-11-04 10:08:20


第 5 行去掉
by 1515ltlt @ 2023-11-04 10:08:27


```cpp printf("请输入俩个值,中间以逗号分隔:"); ``` 把这行去掉即可
by Meteorium @ 2023-11-04 10:09:05


@[1515ltlt](/user/749118) 去掉之后又变成这个了Wrong Answer.wrong answer On line 1 column 1, read a, expected 3.
by ewf8888 @ 2023-11-04 10:10:29


@[ewf8888](/user/1187600) ```cpp printf("请输入俩个值,中间以逗号分隔:"); ``` 这里不要有多余条件
by Li_wc0802 @ 2023-11-04 10:11:47


@[ewf8888](/user/1187600) ```cpp printf("a+b=%lld\n",c); ``` 把这个改为 ```cpp printf("%lld\n",c); ```
by Meteorium @ 2023-11-04 10:12:17


@[Li_wc](/user/1048171) 我是看老师上课ppt上有这个东西,就写上去了
by ewf8888 @ 2023-11-04 10:13:23


把第7行改成 ```cpp printf("%lld\n",c); ```
by HKW0202 @ 2023-11-04 10:14:37


@[ewf8888](/user/1187600) ```cpp #include<stdio.h> int main ( ) { long long int a,b,c; printf("请输入俩个值,中间以逗号分隔:"); scanf("%lld %lld",&a,&b); c=a+b; printf("%lld\n",c); return 0; } ``` 把“a+b="删掉,不然最后有a+b
by Li_wc0802 @ 2023-11-04 10:16:35


| 下一页