I wrote two program that I thought were the same but apparently they are not and I cant figure out why.
the first program(works as expected):
#include <