Ce treaba are IDE-ul cu problema, totusi? Ca sa intelegi, nu folosesc Code::Blocks, prefer CLion, pentru intelliJ si customizability.
#include <iostream>
using namespace std;
int main()
{
int n, v[100], ok = 1;
cin >> n;
for (int i = 0; i < n; ++i)
{
cin >> v[i];
}
for (int i = 0; i < n - 1 && ok; ++i)
{
for (int j = i + 1; j < n; ++j)
{
if(v[i] == v[j])
{
ok = 0;
break;
}
}
}
if (ok)
cout << "DA";
else
cout << "NU";
}