Main.cc: In function 'int main()': Main.cc:8:2: error: expected ',' or ';' before 'while' while(1) ^ Main.cc:7:9: warning: unused variable 'i' [-Wunused-variable] int i=2 ^ Main.cc:18:1: error: expected '}' at end of input } ^