Main.cc: In function ‘int main()’:
Main.cc:12:78: error: expected ‘,’ before ‘+’ token
b[i][j]=a[i-1][j]+a[i][j]+a[i][j-1]+a[i][j]+a[i][j+1]+a[i][j]+a[i+1][j]+[i+1][j+1]+[i-1][j-1];
^
Main.cc:12:78: error: expected identifier before ‘+’ token
Main.cc: In lambda function:
Main.cc:12:81: error: expected ‘{’ before ‘[’ token
b[i][j]=a[i-1][j]+a[i][j]+a[i][j-1]+a[i][j]+a[i][j+1]+a[i][j]+a[i+1][j]+[i+1][j+1]+[i-1][j-1];
^
Main.cc: In function ‘int main()’:
Main.cc:12:81: error: no match for ‘operator[]’ (operand types are ‘main()::’ and ‘int’)
Main.cc:12:89: error: expected ‘,’ before ‘-’ token
b[i][j]=a[i-1][j]+a[i][j]+a[i][j-1]+a[i][j]+a[i][j+1]+a[i][j]+a[i+1][j]+[i+1][j+1]+[i-1][j-1];
^
Main.cc:12:89: error: expected identifier before ‘-’ token
Main.cc: In lambda function:
Main.cc:12:92: error: expected ‘{’ before ‘[’ token
b[i][j]=a[i-1][j]+a[i][j]+a[i][j-1]+a[i][j]+a[i][j+1]+a[i][j]+a[i+1][j]+[i+1][j+1]+[i-1][j-1];
^
Main.cc: In function ‘int main()’:
Main.cc:12:92: error: no match for ‘operator[]’ (operand types are ‘main()::’ and ‘int’)