factory.cpp:24:29: warning: missing terminating " character [enabled by default]
factory.cpp:24:5: error: missing terminating " character
factory.cpp: In function 'int main()':
factory.cpp:24:28: error: expected ')' before 'w'
factory.cpp:23:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
factory.cpp:29:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
factory.cpp:33:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]