Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
90292 | 刘玥 | 07今天很热 | C++ | Compile Error | 0 MS | 0 KB | 152 | 2024-09-11 18:38:20 |
#include<iostream> using namespace std; int main(){ int a; cin>>a; if(a>30);{ cout<<"hot"; } else { cout<<"cold"; } return 0; }
Main.cc: In function 'int main()': Main.cc:9:2: error: 'else' without a previous 'if' else ^