0_0_21207687_2670.cpp:21:1: error: 'onst' does not name a type
onst int N = 1000005;
^
0_0_21207687_2670.cpp:26:12: error: 'N' was not declared in this scope
double ans[N];
^
0_0_21207687_2670.cpp: In function 'int main()':
0_0_21207687_2670.cpp:30:29: error: 'N' was not declared in this scope
for (int i = 1; i < N; i++)
^
0_0_21207687_2670.cpp:32:17: error: 'ans' was not declared in this scope
ans[i] = ans[i - 1] + 1.0 / i;
^
0_0_21207687_2670.cpp:36:26: error: 'N' was not declared in this scope
if (n >= N)
^
0_0_21207687_2670.cpp:42:43: error: 'ans' was not declared in this scope
printf("%.4lf\n", ans[n]);
^
|