add gitignore for C/C++ compiler files
Solve: max consequence sum problem