Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
118262 | 郑景文 | 比大小 | C++ | Compile Error | 0 MS | 0 KB | 209 | 2025-04-26 13:30:45 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; if(a*a>b*c){ cout<<"SQUARE"; } else if(a*a=b*c){ cout<<"SAME"; } else{ cout<<"RECTANGLE"; } return 0; }
Main.cc: In function 'int main()': Main.cc:8:13: error: lvalue required as left operand of assignment else if(a*a=b*c){ ^