| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 147979 | 张锦程 | 判断三角形形状 | C++ | Compile Error | 0 MS | 0 KB | 298 | 2026-02-09 09:46:19 |
#include<iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a*a+b*b==c*c*||a*a+c*c==b*b||b*b+c*c==a*a) cout<<"good"<<endl; else if(a==b||b==c||a==c) cout<<"perfect"<<endl; else cout<<"just a triange"<<endl; return 0; }
Main.cc: In function 'int main()':
Main.cc:6:21: error: expected primary-expression before '||' token
if(a*a+b*b==c*c*||a*a+c*c==b*b||b*b+c*c==a*a)
^