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