谁知道我的代码哪错了(详情请见openjudge第1.10.2) - 爱问答

(爱问答)

谁知道我的代码哪错了(详情请见openjudge第1.10.2)

#include <cstdio>

#include <cmath>

#include <map>

#include <iostream>

#include <algorithm>

using namespace std;

int main ()

{

int n;

   cin >> n;

int a[n];

   for (int i=0;i<n;i++)

   {

      cin >> a[i];

   }

   sort (a,a+n);

   for (int i=0;i<n;i++)

   {

        if (a[i]%2!=0)

        {

              cout << a[i];

              if (i<n-2)

              {

                     cout << ",";

               }

        }

     }

return 0;

}


你这是写了一个什么功能呢?是运行错误还是编译错误呢?

相关标签:

下一篇:这个电脑配置可不可以流畅运行战地1

上一篇:win1064台式机位玩一些游戏画面卡

热门标签:
excel 网盘 破解 word dll
最新更新:
微软重新评估新的Outlook的使用时机 联想推出搭载联发科Helio G80芯片组的Tab M9平板 英特尔创新大赛时间确定! 微软Edge浏览器在稳定渠道中推出Workspaces功能 英伟达RTX4060TiGPU推出MaxSun动漫主题! 谷歌地图为用户提供了街景服务! GameSir 在T4 Kaleid中推出了一款出色的控制器! 微软开始在Windows 11 中测试其画图应用程序的新深色模式! LG电子推出全球首款无线OLED电视 英伟达人工智能芯片崭露头角! Steam Deck可以玩什么游戏-Steam Deck价格限时优惠 雷蛇推出CobraPro鼠标 Kindle电子阅读器可以访问谷歌商店吗 Windows10如何加入组策略 window10图片查看器怎么没有了?