#include<stdio.h>
int main()
{int n,k;
double s;
s=1.0;
scanf("%d",&n);
for(k=1;k<n;k++)
{s+=1.0/(k(k+1));
printf("s=%lf\n",s);}
return 0;
}
1>------ 已启动生成: 项目: hello, 配置: Debug Win32 ------
1> hello.cpp
1>f:\二级c\hello\hello.cpp(5): warning C4996: 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> f:\二级c\vc\include\stdio.h(304) : 参见“scanf”的声明
1>f:\二级c\hello\hello.cpp(7): error C2064: 项不会计算为接受 1 个参数的函数
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
到底什么意思,跪求个大佬给我细细解答一下