0_0_34582325_24943.cpp: In function 'int main()': 0_0_34582325_24943.cpp:27:17: error: 'fp' was not declared in this scope fprintf(fp, "Test #%d\n", ++num); ^