Removed fstream, which includes cmath, which doesn't work in C