prog.cpp: In function ‘int main()’:
prog.cpp:7:15: error: ‘input’ was not declared in this scope
ifstream file(input.txt);
^~~~~
prog.cpp:8:17: error: cannot resolve overloaded function ‘is_open’ based on conversion to type ‘bool’
if (file.is_open){
^
prog.cpp:17:16: error: ‘output’ was not declared in this scope
ofstream file1(output.txt);
^~~~~~