Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
74054 伍思语 11判断三角形 C++ Compile Error 0 MS 0 KB 437 2024-05-21 19:39:56

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if((a+b)<c&&(a-b)>c){ if(a==b&&b==c){ cout<<"Equilateral Triangle"; return 0; } else if(a==b||b=a||a==c){ cout<<"Isosceles Triangle"; return 0; } else if(a*a+b*b==c*c||a*a+c*c==b*b||c*c+b*b==a*a){ cout<<"Right Triangle"; return 0; } } else{ cout<<"No"; return 0; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:12:18: error: lvalue required as left operand of assignment
   else if(a==b||b=a||a==c){
                  ^