Compile Error
foo.cc: In function 'int main()': foo.cc:6:9: error: 'cout' was not declared in this scope 6 | cout<<"输入年份:"; | ^~~~ foo.cc:7:9: error: 'cin' was not declared in this scope 7 | cin>>year; | ^~~ foo.cc:8:30: error: expected primary-expression before '!=' token 8 | if(year%4==0 && year%!=0 || year%400==0) | ^~ foo.cc:9:36: error: 'endl' was not declared in this scope 9 | cout<<year<<"yes"<<endl; | ^~~~ foo.cc:11:35: error: 'endl' was not declared in this scope 11 | cout<<year<<"no"<<endl; | ^~~~
信息
- 递交者
- 类型
- 递交
- 题目
- P1001 判断闰年
- 语言
- C++
- 递交时间
- 2024-03-23 16:16:30
- 评测时间
- 2024-03-23 16:16:30
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes