Main.cc: In function 'int main()':
Main.cc:10:13: error: 'k' was not declared in this scope
cin>>n>>k;
^
Main.cc:14:9: error: expected ';' before 'cout'
cout<a<<endl;
^
Main.cc:13:10: warning: statement has no effect [-Wunused-value]
a+1
^