Main.cc: In function ‘int main()’: Main.cc:5:19: error: ‘n’ was not declared in this scope scanf("%d%d",&n,&k); ^ Main.cc:5:19: note: suggested alternative: ‘yn’ scanf("%d%d",&n,&k); ^ yn Main.cc:5:22: error: ‘k’ was not declared in this scope scanf("%d%d",&n,&k); ^