0_0_17676156_23639.cpp:1:11: error: '::main' must return 'int'
void main()
^
0_0_17676156_23639.cpp: In function 'int main()':
0_0_17676156_23639.cpp:12:25: error: 'scanf' was not declared in this scope
while(scanf("%lf",&n))
^
0_0_17676156_23639.cpp:52:29: error: 'printf' was not declared in this scope
printf("%.3lf\n",sum);
^
|