哈利波特10《伏地魔打代码》
2025-06-22 20:14:35
发布于:江苏
伏地魔:h.b马上就要找上门了,得写个代码对付他......
{x=铁三角人数}
#include<iostream>
using namespace std;
int main(){
int n,;
cin<<n;
if(n=1){
cout<<"阿瓦达索命";
}else if(n= 1){
cojt<<"阿瓦达索命;
cout<<"阿瓦达索命";
}els e{
cout<<"阿瓦达索命";
cout<<"阿瓦达索命";
cout<<"阿瓦达索命";
}
}
return 0;
编译错误: /code/judger/test/1936759529871659008/main.cpp:2:20: error: stray '\357' in program
2 | using namespace std;
| ^
/code/judger/test/1936759529871659008/main.cpp:2:21: error: stray '\274' in program
2 | using namespace std;
| ^
/code/judger/test/1936759529871659008/main.cpp:2:22: error: stray '\233' in program
2 | using namespace std;
| ^
compilation terminated due to -fmax-errors=3.
(扫了一眼)这也没错啊!
两秒过去了......
(怒火中烧,对准电脑):阿瓦达 —— —— 啃大瓜!
哈利波特(闻声而来):除你武器!
有的人活着
他已经死了;(伏地魔)
有的人死了
他还活着。(电脑-毫发无损)
电脑:我厉害吧!我!
#include<iostream>
using namespace std;
int main(){
int n;
cin>>n;
if(n1){
cout<<"阿瓦达索命";
}else if(n1){
cout<<"阿瓦达索命";
cout<<"阿瓦达索命";
}else{
cout<<"阿瓦达索命";
cout<<"阿瓦达索命";
cout<<"阿瓦达索命";
}
return 0;
}
我和“中华红军苏维埃共和国 并 c++”的小伙伴都在ACGO等你,快用这个专属链接加入我们吧!https://www.acgo.cn/application/1923715651067527168
这里空空如也
有帮助,赞一个