Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
7692 邓小龙 11判断三角形 C++ Compile Error 0 MS 0 KB 613 2025-05-15 23:43:42

Tests(0/0):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a+b>c||a+c>b||b+c>a){ if(a=b||b==c||a==c){ if(a==b&&a=c){ cout"Equilateral Triangle"<<endl; } else{ cout"Isosceles Triangle"<<endl; } } } else{ <<"No"<<endl; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:11:27: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
         if(a=b||b==c||a==c){
                           ^
Main.cc:12:23: error: lvalue required as left operand of assignment
             if(a==b&&a=c){
                       ^
Main.cc:13:21: error: expected ';' before string constant
                 cout"Equilateral Triangle"<endl;
                     ^
Main.cc:13:49: warning: statement has no effect [-Wunused-value]
                 cout"Equilateral Triangle"<<endl;
                                                 ^
Main.cc:16:21: error: expected ';' before string constant
                 cout"Isosceles Triangle"<<endl;
                     ^
Main.cc:16:47: warning: statement has no effect [-Wunused-value]
                 cout"Isosceles Triangle"<<endl;
                                               ^
Main.cc:22:9: error: expected primary-expression before '<<' token
         <<"No"<<endl;
         ^