Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
109564 李朋秦 11判断三角形 C++ Compile Error 0 MS 0 KB 452 2025-02-09 15:15:41

Tests(0/0):


Code:

#include<cstdio> //scanf()\ int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c); if((a+b>c)&&(a-b>c)){ if((a*a+b*b=c*c)||(a*a+c*c=b*b)(c*c+b*b=a*a)){ printf("Right Triangle"); }else if((a=b)&&(b==c){ printf("Equilateral Triangle"); }else if((a==b)||(a==c)||(a==c)){ printf("Isosceles Triangle") }else{ printf("Simple Triangle") } }else{ printf("NO") } return 0; }


Run Info:

Main.cc:1:21: warning: multi-line comment [-Wcomment]
 #include    //scanf()\
                     ^
Main.cc:4:10: error: expected constructor, destructor, or type conversion before '(' token
     scanf("%d%d%d",&a,&b,&c);
          ^
Main.cc:5:5: error: expected unqualified-id before 'if'
     if((a+b>c)&&(a-b>c)){
     ^