Main.cc: In function 'int main()': Main.cc:12:3: error: expected ';' before '}' token } ^ Main.cc:14:24: warning: format '%d' expects a matching 'int' argument [-Wformat=] printf("%d\n %d",mx); ^