giant/prog4B.cpp can't compile; virtual memory exhausted.