Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
117617 李林叡 比大小 C++ Compile Error 0 MS 0 KB 208 2025-04-19 15:38:30

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(a*a<b*c) { cout<<"RECTANGLE"; } else if(a*a>b*c) { }cout<<"SQUARE"; else cout<<"SAME"; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:11:1: error: 'else' without a previous 'if'
 else cout<<"SAME";
 ^