List

FILE* f = fopen....
and you can remove line 52.
It is not a C but a C++ code.