Main.cc: In function ‘int main()’:
Main.cc:8:11: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if(n%4==0&&n%100!=0||n%400==0)
~~~~~~^~~~~~~~~~
Main.cc:9:3: error: ‘cout’ was not declared in this scope
cout<<"Yes"
^~~~
Main.cc:13:2: error: ‘areturn’ was not declared in this scope
areturn 0;
^~~~~~~
Main.cc:5:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &t);
~~~~~^~~~~~~~~~
Main.cc:7:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
~~~~~^~~~~~~~~~