Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
144995 张法森 07今天很热 C++ Compile Error 0 MS 0 KB 172 2026-01-24 20:00:44

Tests(0/0):


Code:

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


Run Info:

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