I understand why you’re getting downvotes and I probably will get downvoted too, but personally I wouldn’t want less keys on my keyboard either, because you never know if at some point you encounter a program that needs you to press a button that you don’t have and you don’t feel like remapping stuff or don’t have the time.
Flashback to me as a kid playing GTA SA/VC and tilting the bike/helis with the numpad.
Maybe just buy a cheap full size keyboard and keep it stored away for when you need it?
Still, in the Linux world, tinkering with the computer is part of the experience, so… best of luck with one of the X available ways of emulating or remapping keys without finding that confusing for either you or someone else who may be using your computer at some point in the future.







Which C++ standard are you using? I think you should look into explicitly specifying at least C++11 as the error is whithin the if(declare var)… world.
Afaik this is not supported before C++11.