问题标题: 请问我的代码哪里不对

6
3

6
8
赵逸凡
赵逸凡
初级启示者
初级启示者

行1:没错

行2:没错

行3:无缩进;流符方向反了;Hello,后要有空格;World首字母要大写;

行4:无缩进;return 0的0错了;

    cout<<"Hello, World";
    return 0;

 

3
2
1
鲁天一
鲁天一
初级光能
初级光能

cout>>"Hello,world!";

>>错了,<<对的

return o;

o错了,0对的。

编译会有提醒。

0
0
贺晓雨
贺晓雨
资深守护
资深守护

cout是<<,return 0 不是 return o。

0
许金夫
许金夫
初级天翼
初级天翼

cout>>"Hello,world!";

>>错了,<<对的

return o;

o错了

0
朱苏婉
朱苏婉
中级守护
中级守护

应该是cout<<"Hello,world!";

 括号反了

0
0
0
0
0
0
武宸锐
武宸锐
初级光能
初级光能

向第一个问题致敬!

原来如此

0
颜咏春
颜咏春
中级光能
中级光能

应该是cout<<"Hello,world!";

 括号反了

0
0
王子凡
王子凡
高级光能
高级光能

cout<<"Hello,world!";

return 0;

0
0
0
汪宇航
汪宇航
新手启示者
新手启示者

    cout<<"Hello, World!"

    return 0;

0
0
0
0
李翊冉
李翊冉
高级守护
高级守护

cout要用“<<”,不是“>>”

0
0
朱文博
朱文博
中级守护
中级守护

这是低级错误,输入时用>>

                       输出时用<<

0
0
0
0
0
汪恺恒
汪恺恒
中级启示者
中级启示者

输出错了

改成cout<<

返回错了

改成return 0

0
0
张鑫宇
张鑫宇
中级守护
中级守护

应该是cout<<,would的W要大写,return 0,不是o

0
张司桥
张司桥
资深守护
资深守护

cout<<"Hello World";

return 0;

0
0
0
吴寒
吴寒
初级守护
初级守护

是cout<<,你写反了;

return 0;的0写成了o;

0
0
桂心俊
桂心俊
中级守护
中级守护

第3行的>>应改为<<

第4行的o应改为0

0
孙锦宸
孙锦宸
修练者
修练者

祝你CE快乐

Complete Error:0分Complete Error :0分

孙锦宸在2019-01-05 11:04:44追加了内容

[Error] no match for 'operator>>' (operand types are 'std::ostream {aka std::basic_ostream<char>}' and 'const char [13]')

不是>> 是 <<

[Error] 'o' was not declared in this scope

return 0 而不是 return o

 

0
0
0
0
0
孔小川
孔小川
初级光能
初级光能

是cout<<......    不是>>.......

是return 0; 不是return o;

0
0
0
0
0
我要回答