| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 144617 | 王峻熙 | 07今天很热 | C++ | Compile Error | 0 MS | 0 KB | 192 | 2026-01-24 14:30:33 |
#include<iostream> using namespace std; int main(){ int x; cin>>x if(x>30){ cout<<"hot"<<endl; } else{ cout<<"cold"<<endl; } return 0; }
Main.cc: In function 'int main()':
Main.cc:6:5: error: expected ';' before 'if'
if(x>30){
^
Main.cc:9:5: error: 'else' without a previous 'if'
else{
^