Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
8070 先明缜 11判断三角形 C++ Compile Error 0 MS 0 KB 453 2025-06-12 20:53:07

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:23:2: error: 'retrun' was not declared in this scope
  retrun 0;
  ^
Main.cc:23:9: error: expected ';' before numeric constant
  retrun 0;
         ^