Main.cc: In function 'int main()': Main.cc:12:7: error: expected ';' before 'while' while(m[a]) ^ Main.cc:9:9: warning: unused variable 'a' [-Wunused-variable] int a=0; ^