| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 148081 | 杨润东 | 判断三角形形状 | C++ | Compile Error | 0 MS | 0 KB | 314 | 2026-02-09 16:36:29 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,a,b,c,ans; cin>>n; for(int i=1;i<=n;i++){ 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||a==c||b==c) cout<<"perfect"<<endl; else cout<<"just a triangle"; } return; }
Main.cc: In function 'int main()':
Main.cc:15:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
return;
^
Main.cc:4:13: warning: unused variable 'ans' [-Wunused-variable]
int n,a,b,c,ans;
^