#include <iostream>
#include <fstream>
using namespace std;

int main() {
   ofstream areaFS;
   string fileName;
   string line1;
   string line2;
   string line3;
   string line4;

   cin >> fileName;
   cin >> line1;
   cin >> line2;
   cin >> line3;
   cin >> line4;

   areaFS.open(fileName);
   if (!areaFS.is_open()) {
      cout << fileName << " could not be opened" << endl;
      return 1;
   }
   else {
      cout << "Code: " << line1 << endl;
      cout << "Code: " << line2 << endl;
      cout << "Code: " << line3 << endl;
      cout << "Code: " << line4 << endl;
   }
   areaFS.close();

   if (areaFS.is_open()) {  /* For testing purpose only */
      areaFS << "File is not closed." << endl;  
   }
  
   return 0;
} WHATS WRONG WITH THIS C++ CODE IT WONT COMPILE