Main.cc: In function 'bool s(int)':
Main.cc:4:13: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if(year%4==0&&year%100!=0||year%400==0){
^
Main.cc:10:11: error: a function-definition is not allowed here before '{' token
int main(){
^
Main.cc:19:1: error: expected '}' at end of input
}
^