0_0_13689782_21311.cpp:20:1: error: expected unqualified-id before 'double'
double k, xx, x[MAXN], h[MAXN];
^
0_0_13689782_21311.cpp: In function 'int main()':
0_0_13689782_21311.cpp:44:19: error: 'x' was not declared in this scope
scanf("%d%d", &x[i], &h[i]);
^
0_0_13689782_21311.cpp:44:26: error: 'h' was not declared in this scope
scanf("%d%d", &x[i], &h[i]);
^
0_0_13689782_21311.cpp:55:4: error: 'xx' was not declared in this scope
xx = x[i + 1] - x[i];
^
0_0_13689782_21311.cpp:55:9: error: 'x' was not declared in this scope
xx = x[i + 1] - x[i];
^
0_0_13689782_21311.cpp:58:27: error: 'k' was not declared in this scope
if (pota[j].p == x[i])k = h[i];
^
0_0_13689782_21311.cpp:58:31: error: 'h' was not declared in this scope
if (pota[j].p == x[i])k = h[i];
^
0_0_13689782_21311.cpp:61:10: error: 'h' was not declared in this scope
if (h[i] > h[i + 1])
^
0_0_13689782_21311.cpp:63:7: error: 'k' was not declared in this scope
k = (x[i + 1] - pota[j].p) / xx*(h[i] - h[i + 1]);
^
0_0_13689782_21311.cpp:68:7: error: 'k' was not declared in this scope
k = (pota[j].p - x[i]) / xx*(h[i + 1] - h[i]);
^
0_0_13689782_21311.cpp:73:43: error: 'k' was not declared in this scope
if (pota[j].v > sqrt(ans*ans - 2 * g*(k - h[1])))ans =sqrt(pota[j].v*pota[j].v+2*g*(k-h[1]));
^
0_0_13689782_21311.cpp:73:47: error: 'h' was not declared in this scope
if (pota[j].v > sqrt(ans*ans - 2 * g*(k - h[1])))ans =sqrt(pota[j].v*pota[j].v+2*g*(k-h[1]));
^
|