Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
74171 福娃 判断三角形形状 C++ Compile Error 0 MS 0 KB 298 2024-05-23 20:27:15

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n,a,b,c; cin>>n; while(n<0){ cin>>a>>b>>c; if(a=b or a=c or b=c){ cout<<"perfect"; }else if(a*a+b*b=c*c or b*b+c*c=a*a or a*a+c*c=b*b){ cout<<"good"; }else{ cout<<"just a triangle"; } } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:21: error: lvalue required as left operand of assignment
   if(a=b or a=c or b=c){
                     ^
Main.cc:10:49: error: lvalue required as left operand of assignment
   }else if(a*a+b*b=c*c or b*b+c*c=a*a or a*a+c*c=b*b){
                                                 ^