Submission #6948
Source Code Expand
#include<iostream> #include<cstdio> using namespace std; void main(){ int y; scanf("%d",&y); if(y%400==0) puts("YES"); else if(y%100==0) puts("NO"); else if(y%4==0) puts("YES"); else puts("NO"); }
Submission Info
Submission Time | |
---|---|
Task | A - うるう年 |
User | sate3saku3 |
Language | C++ (GCC 4.4.7) |
Score | 0 |
Code Size | 212 Byte |
Status | CE |
Compile Error
./Main.cpp:4: error: ‘::main’ must return ‘int’ ./Main.cpp: In function ‘int main()’: ./Main.cpp:6: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result