Main.cc: In function ‘void print()’:
Main.cc:19:5: error: ‘i’ was not declared in this scope
if(i>n) {
^
Main.cc:24:8: error: ‘b’ was not declared in this scope
if((b[j]==0) && (c[i+j]==0) && (d[i-j+n]==0){
^
Main.cc:24:21: error: ‘c’ was not declared in this scope
if((b[j]==0) && (c[i+j]==0) && (d[i-j+n]==0){
^
Main.cc:24:36: error: ‘d’ was not declared in this scope
if((b[j]==0) && (c[i+j]==0) && (d[i-j+n]==0){
^
Main.cc:24:48: error: expected ‘)’ before ‘{’ token
if((b[j]==0) && (c[i+j]==0) && (d[i-j+n]==0){
^
Main.cc:30:1: error: expected primary-expression before ‘}’ token
}
^
Main.cc:32:1: error: a function-definition is not allowed here before ‘{’ token
{
^
Main.cc:36:1: error: expected ‘}’ at end of input
}
^