| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 149767 | zxy | 比大小 | C++ | Compile Error | 0 MS | 0 KB | 221 | 2026-03-16 17:04:12 |
#include <iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a*a>b*c){ cout<<"SQUARE"; }else if(a*a>b*c){ cout<<"RECTANGLE"; }else(a*a=b*c) cout<<"SAME"; }
Main.cc: In function 'int main()':
Main.cc:13:13: error: lvalue required as left operand of assignment
}else(a*a=b*c)
^