入门题解5
2023-03-17 10:40:32
发布于:安徽
601阅读
0回复
0点赞
入门题解,我用题目要求的条件分支写的,如下
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if(a>b){
if(a>c){
cout<<a;
}else{
cout<<c;
}
}else{
if(b>c){
cout<<b;
}else{
cout<<c;
}
}
return 0;
}
全部评论 5
/code/judger/run/20260706/5117700606202478689/main.cpp:19:12: error: stray '\357' in program
19 | return 0;
| ^
/code/judger/run/20260706/5117700606202478689/main.cpp:19:13: error: stray '\274' in program
19 | return 0;
| ^
/code/judger/run/20260706/5117700606202478689/main.cpp:19:14: error: stray '\233' in program
19 | return 0;
| ^
compilation terminated due to -fmax-errors=3.1周前 来自 上海
0return 0;
return 0;
;有问题1周前 来自 浙江
0;?
2026-01-26 来自 上海
0应该是
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a>b){ if(a>c){ cout<<a; }else{ cout<<c; } }else{ if(b>c){ cout<<b; }else{ cout<<c; } } return 0; }2025-12-18 来自 浙江
0代码有问题
2024-09-29 来自 浙江
0分号是中文而已
2025-11-29 来自 浙江
0对,me 也看见了
2026-01-20 来自 浙江
0






















有帮助,赞一个