>>929
さんきゅー
頭に
#include <cmath>

namespace 列挙のところに、
using namespace std;
で sqrtが使えるヨーになりました。神さんありがとです。