Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
67328 石依灵 11判断三角形 C++ Compile Error 0 MS 0 KB 562 2024-03-16 13:47:12

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ long long a,b,c; cin>>a>>b>>c; if(a+b>c && a+c>b && b+c>a){ if(a==b && b==c){ cout<<"Equilateral Triangle"; } else if(a==b || b==c || a==c){ cout<<"Isosceles Triangle"; } else if(a*a+b*b==c*c || a*a+c*c==b*b || c*c+b*b==a*a){ cout<<"Right Triangle"; } else if{ cout<<"Simple Triangle"; } else{ cout<<"No"; } } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:16:16: error: expected '(' before '{' token
         else if{
                ^
Main.cc:19:9: error: expected '}' before 'else'
         else{
         ^
Main.cc: At global scope:
Main.cc:23:5: error: expected unqualified-id before 'return'
     return 0;
     ^
Main.cc:24:2: error: expected declaration before '}' token
  }
  ^