Main.cc: In function 'int main()': Main.cc:5:10: error: 'M' was not declared in this scope cin>>n>>M; ^ Main.cc:7:23: error: expected primary-expression before ';' token cout<<(char)i<<" "<<; ^