| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 139130 | ztx | 属相 | C++ | Compile Error | 0 MS | 0 KB | 217 | 2025-12-01 17:21:43 |
#include<iostream> using namespace std; int main(){ int month day; cin>>month>>day; if(month=1&&day<=24){ cout<<"Pig"; }else{ cout<<"Mouse"; } }
Main.cc: In function 'int main()':
Main.cc:7:16: error: expected initializer before 'day'
int month day;
^
Main.cc:9:11: error: 'month' was not declared in this scope
cin>>month>>day;
^
Main.cc:9:18: error: 'day' was not declared in this scope
cin>>month>>day;
^