0_0_38283150_30862.cpp:46:21: error: exponent has no digits
const double eps = 1e-;
^
0_0_38283150_30862.cpp:47:19: error: expected primary-expression before ';' token
const int maxn = ;
^
0_0_38283150_30862.cpp:48:16: error: size of array 'nd' is not an integral constant-expression
node_t nd[maxn];
^
0_0_38283150_30862.cpp: In function 'double calc(double)':
0_0_38283150_30862.cpp:30:39: error: expected primary-expression before ';' token
#define rep(i, a, n) for (int i=a;i<n;++i)
^
0_0_38283150_30862.cpp:54:6: note: in expansion of macro 'rep'
rep(i, , n)
^
0_0_38283150_30862.cpp:55:38: error: expected primary-expression before ')' token
ret += pow(fabs(x-nd[i].x), ) * nd[i].w;
^
0_0_38283150_30862.cpp: In function 'void solve()':
0_0_38283150_30862.cpp:30:39: error: expected primary-expression before ';' token
#define rep(i, a, n) for (int i=a;i<n;++i)
^
0_0_38283150_30862.cpp:66:6: note: in expansion of macro 'rep'
rep(i, , n) {
^
0_0_38283150_30862.cpp:72:25: error: expected primary-expression before ';' token
m1 = l + (r-l)/;
^
0_0_38283150_30862.cpp:73:25: error: expected primary-expression before ';' token
m2 = r - (r-l)/;
^
0_0_38283150_30862.cpp: In function 'int main()':
0_0_38283150_30862.cpp:30:39: error: expected primary-expression before ';' token
#define rep(i, a, n) for (int i=a;i<n;++i)
^
0_0_38283150_30862.cpp:99:6: note: in expansion of macro 'rep'
rep(tt, , t+) {
^
0_0_38283150_30862.cpp:30:43: error: expected primary-expression before ';' token
#define rep(i, a, n) for (int i=a;i<n;++i)
^
0_0_38283150_30862.cpp:99:6: note: in expansion of macro 'rep'
rep(tt, , t+) {
^
0_0_38283150_30862.cpp:30:39: error: expected primary-expression before ';' token
#define rep(i, a, n) for (int i=a;i<n;++i)
^
0_0_38283150_30862.cpp:101:10: note: in expansion of macro 'rep'
rep(i, , n)
^
0_0_38283150_30862.cpp:111:6: error: return-statement with no value, in function returning 'int' [-fpermissive]
return ;
^
|