Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
96945 | 张德皓 | 比大小 | C++ | Compile Error | 0 MS | 0 KB | 263 | 2024-11-09 22:01:20 |
#include<iostream> #include<cstdio> using namespace std; int main(){ int a,b,c,d; cin>>a>>b>>c; if(a*a<b*c){ cout<<"SQUARE"; } if(a*a>b*c){ cout<<"RECTANGLE"; else{ cout<<"SAME"; } return 0; }
Main.cc: In function 'int main()': Main.cc:12:5: error: expected '}' before 'else' else{ ^ Main.cc:5:15: warning: unused variable 'd' [-Wunused-variable] int a,b,c,d; ^