79217971

Date: 2024-11-23 14:02:03
Score: 1
Natty:
Report link
  1. You are trying to dereference the uninitialized pointers, such as:

cin >> *cppfile;

cin >> *outputfile;

To fix this, change the type of these variables to "std::string" objects and use "std::cin" to directly assign values to them.

  1. Change opt from "char*" to a "char" type.
  2. Replace the double quotes in the comparison with "opt" to single quotes:

if (opt == "1" || opt == "a" || opt == "A")

to

if (opt == '1' || opt == 'a' || opt == 'A')

  1. Include the string library to ensure the program works properly:

#include "string"

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: İnanç Görgülü