Comments

" throw runtime_error("freopen() failed: cannot open file "+file_name); }; " for this line, even for a hello world it is signalling : "[Error] 'runtime_error' was not declared in this scope"...