0_0_21530238_30877.cpp:7:12: error: size of array 'sg' has non-integral type 'double' int sg[MAXN]; ^