0_0_34120653_12326.cpp:6:13: error: expected initializer before 'a'
double n, k a[N], maxx = -0x3f3f3f3f, x;
^
0_0_34120653_12326.cpp: In function 'int main()':
0_0_34120653_12326.cpp:8:27: error: 'k' was not declared in this scope
scanf("%lf %lf", &n, &k);
^
0_0_34120653_12326.cpp:10:23: error: 'x' was not declared in this scope
scanf("%lf", &x);
^
0_0_34120653_12326.cpp:11:9: error: 'a' was not declared in this scope
a[i] = x + 0.005;
^
0_0_34120653_12326.cpp:12:9: error: 'maxx' was not declared in this scope
maxx = max(a[i], maxx);
^
0_0_34120653_12326.cpp:14:23: error: 'maxx' was not declared in this scope
double l = 0, r = maxx;
^
0_0_34120653_12326.cpp:18:47: error: 'a' was not declared in this scope
for (int i = 1; i <= n; i ++) ans += (a[i] / mid);
^
0_0_34120653_12326.cpp:23:43: error: 'a' was not declared in this scope
for (int i = 1; i <= n; i ++) ans += (a[i] / l), an += (a[i] / r);
^
|