Main.cc: In function ‘int f(int)’: Main.cc:4:34: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(t%4==0 && t%100!=0 || t%400==0){ ~~~~~~~^~~~~~~~~~~ Main.cc:7:27: error: a function-definition is not allowed here before ‘{’ token int main(){ ^ Main.cc:15:23: error: ‘sum’ was not declared in this scope cout<