2025-03-02 07:33:52
#include <stdio.h>
int main()
{
int i,N;
scanf("%d",&N);
int *t=new int[N];
for(i=0;i<N;i++)
scanf("%d",&t[i]);
for(i=0;i<N;i++)
if(t[i]%2==1)
printf("YES!\n");
else
printf("NO!\n");
return 0;
}
我复制粘贴过来执行有错啊??
你的什么编译器?
我的是VC++6.0,VS2010都可以正常执行
你可以把你的错误贴出来
我也是用vc++6.0
代码没有问题,我这里就可以正确执行,执行结果能贴给你了
应该是你的工程建的错了
还是不行。
#include <stdio.h>
int main()
{
printf("asdf\n");
return 0;
}
你写个最简单的程序,看能运行不?不能运行就是其它的问题
可以运行
不懂了,帮不了你