大家帮我看看,哪里错了?

P1001 A+B Problem

ffgg57344 @ 2020-02-22 17:38:39

不知道为什么,提交上去老是反馈304?

#include <iostream>
using namespace std;
int main()
{
    int a,b;
    cin >> a >> b;
    cout << a+b << endl;
    return 0;
}

by Yukinoshita_Yukino @ 2020-02-22 17:40:20

@ffgg57344 不要用中文分号


by Yukinoshita_Yukino @ 2020-02-22 17:40:32

int a,b;

by ffgg57344 @ 2020-02-22 17:40:46

@liuziming 怎么做?


by Yukinoshita_Yukino @ 2020-02-22 17:41:20

@ffgg57344 把中文分号改成英文分号。


by ffgg57344 @ 2020-02-22 17:41:52

@liuziming 我是新手弱弱


by ffgg57344 @ 2020-02-22 17:42:09

@liuziming 谢谢


by DeepSkyBlue__ @ 2020-02-22 17:49:33

中文输入法,Coding时的万恶之源


by SisconHL @ 2020-02-22 17:54:56

应该这样(大雾逃):

#include <iostream>
using namespace std;
int main()
{
    int a,b;
    cout << "请输入两个数";
    cin >> a >> b;
    cout << "两数之和是:" << a+b << endl;
    return 0;
}

by LeavingZzz @ 2020-02-22 17:54:58

@FDY_ManchesterCity 输入法乃Coding时的万恶之源


by Islauso @ 2020-02-22 17:58:00

@ShadderLeave 有纯英文输入法的……


| 下一页