Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
109293 | 王晏林 | 08比较三个数的大小 | C++ | Compile Error | 0 MS | 0 KB | 1657 | 2025-02-08 10:01:09 |
#include<iostream> #include<cstdio> using namespace std; int main(){ int a,b,c,max; cin>>a>>b>>c; if(a>=b&&a>=c){#include<iostream> #include<cstdio> using namespace std; int main(){ int a,b,c,max; cin>>a>>b>>c; if(a>=b&&a>=c){ max=a; } if(b<=a&&b>=c){ max=b; } if(c>=a&&c>=b){ max=c; } cout<<max; return 0; }#include<iostream> #include<cstdio> using namespace std; int main(){ int a,b,c,max; cin>>a>>b>>c; if(a>=b&&a>=c){ max=a; } if(b<=a&&b>=c){ max=b; } if(c>=a&&c>=b){ max=c; } cout<<max; return 0; }v#include<iostream> #include<cstdio> using namespace std; int main(){ int a,b,c,max; cin>>a>>b>>c; if(a>=b&&a>=c){ max=a; } if(b<=a&&b>=c){ max=b; } if(c>=a&&c>=b){ max=c; } cout<<max; return 0; }#include<iostream> #include<cstdio> using namespace std; int main(){ int a,b,c,max; cin>>a>>b>>c; if(a>=b&&a>=c){ max=a; } if(b<=a&&b>=c){ max=b; } if(c>=a&&c>=b){ max=c; } cout<<max; return 0; }#include<iostream> #include<cstdio> using namespace std; int main(){ int a,b,c,max; cin>>a>>b>>c; if(a>=b&&a>=c){ max=a; } if(b<=a&&b>=c){ max=b; } if(c>=a&&c>=b){ max=c; } cout<<max; return 0; } max=a; } if(b<=a&&b>=c){ max=b; } if(c>=a&&c>=b){ max=c; } cout<<max; return 0; }
Main.cc:7:20: error: stray '#' in program if(a>=b&&a>=c){#include ^ Main.cc:24:2: error: stray '#' in program }#include ^ Main.cc:41:3: error: stray '#' in program }v#include ^ Main.cc:58:2: error: stray '#' in program }#include ^ Main.cc:75:2: error: stray '#' in program }#include ^ Main.cc: In function 'int main()': Main.cc:7:21: error: 'include' was not declared in this scope if(a>=b&&a>=c){#include ^ Main.cc:7:37: error: expected primary-expression before '>' token if(a>=b&&a>=c){#include ^ Main.cc:9:1: error: expected primary-expression before 'using' using namespace std; ^ Main.cc:10:11: error: a function-definition is not allowed here before '{' token int main(){ ^ Main.cc:103:1: error: expected '}' at end of input } ^ Main.cc:5:15: warning: unused variable 'max' [-Wunused-variable] int a,b,c,max; ^ Main.cc:103:1: error: expected '}' at end of input } ^