Main.cc: In function 'int main()': Main.cc:10:20: error: invalid operands of types 'void*' and 'int' to binary 'operator%' if(m%4==0) and m%100!=0{ ^ Main.cc:10:18: error: label 'm' used but not defined if(m%4==0) and m%100!=0{ ^