Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
135342 zxy 07今天很热 C++ Compile Error 0 MS 0 KB 141 2025-11-03 17:02:05

Tests(0/0):


Code:

#include <iostream> using namespace std; int main() int a; cin >>a; if(a>30){ cout<<"cold" } if(a<30){ cout<<"hot"; }


Run Info:

Main.cc:4:5: error: expected initializer before 'int'
     int a;
     ^
Main.cc:5:2: error: 'cin' does not name a type
  cin >>a;
  ^
Main.cc:6:2: error: expected unqualified-id before 'if'
  if(a>30){
  ^
Main.cc:9:2: error: expected unqualified-id before 'if'
  if(a<30){
  ^