#include
#include
#include
#include
#include
using std::ifstream;
using namespace std;
The size of an automatic array must be a compile-time constant.
const int size = 100;
float x[size][2];
If the size weren't known at compile-time (e.g entered by the user, determined from the contents of the file), you'd need to use dynamic allocation, for example:
std::vector > x(somesize);
(Instead of a pair, a dedicated Point struct/class would make perfect sense.)