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

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; scanf("%d%d%d"&a,&b,&c); if((a+b>c)&&(a-b>c)){ if(a*a=b*b+c||b*b==a*a+c||c*c==a*a+b*b){ printf("直角"); }else if(a==b&&b==c){ printf("等角"); }else if(a==b||b==c||a==c){ printf("等腰") }else{ printf("一般") } }else{ printf("No"); } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:20: error: invalid operands of types 'const char [7]' and 'int' to binary 'operator&'
     scanf("%d%d%d"&a,&b,&c);
                    ^
Main.cc:11:15: error: lvalue required as left operand of assignment
         if(a*a=b*b+c||b*b==a*a+c||c*c==a*a+b*b){
               ^
Main.cc:17:5: error: expected ';' before '}' token
     }else{
     ^
Main.cc:19:5: error: expected ';' before '}' token
     }
     ^