foo.cc: In function ‘int main()’:
foo.cc:3:17: error: ‘cin’ was not declared in this scope
3 | int y,m;cin>>y>>m;
| ^~~
foo.cc:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
foo.cc:8:30: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
8 | if(y%400==0 || y%4==0&&y%100!=0)
| ~~~~~~^~~~~~~~~~
foo.cc:11:9: error: ‘cout’ was not declared in this scope
11 | cout<<d;
| ^~~~
foo.cc:11:9: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?