Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
102879 | 殷佳雨萱 | 11判断三角形 | C++ | Compile Error | 0 MS | 0 KB | 502 | 2024-12-25 22:10:54 |
#include<iostream> #include<algorithm> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; int x=mim({a,b,c}),z=max({a,b,c}),y=a+b+c-x-z; if(x+y>z){ int t1=x*x,t2=y*y,t3=z*z; if(t1=x*x,t2==t3) cout<<"Right Triangle\n"; if(x==y || x==z || y==z) cout<<"Isosceles Triangle\n"; if(x==y && x==z) cout<<"Equilateral Triangle/n"; else{ cout<<"Simple Triangle/n"; } } else{ return 0; } }
Main.cc: In function 'int main()': Main.cc:7:22: error: 'mim' was not declared in this scope int x=mim({a,b,c}),z=max({a,b,c}),y=a+b+c-x-z; ^ Main.cc:7:37: error: expected ',' or ';' before ')' token int x=mim({a,b,c}),z=max({a,b,c}),y=a+b+c-x-z; ^ Main.cc:8:10: error: 'y' was not declared in this scope if(x+y>z){ ^ Main.cc:8:12: error: 'z' was not declared in this scope if(x+y>z){ ^ Main.cc:10:23: error: 't3' was not declared in this scope if(t1=x*x,t2==t3) cout<<"Right Triangle\n"; ^