Run id: 97521

Main.cc:2:1: error: 'cin' does not name a type
 cin>>n; 
 ^
Main.cc:3:1: error: expected unqualified-id before 'for'
 for(int x=0;x<=n;x++){ 
 ^
Main.cc:3:13: error: 'x' does not name a type
 for(int x=0;x<=n;x++){ 
             ^
Main.cc:3:18: error: 'x' does not name a type
 for(int x=0;x<=n;x++){ 
                  ^
Main.cc:14:1: error: expected unqualified-id before 'if'
 if(a==0){ 
 ^