Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
102519 唐俊逸 07今天很热 C++ Compile Error 0 MS 0 KB 374 2024-12-21 19:09:22

Tests(0/0):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a; cin a; if(a>30){ cout<<"hot"; } else{ cout<<"cold"; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:9: error: expected ';' before 'a'
     cin a;
         ^
Main.cc:9:10: warning: statement has no effect [-Wunused-value]
     cin a;
          ^