제출 #1331608

#제출 시각아이디문제언어결과실행 시간메모리
1331608kenkunkinList of Unique Integers (FXCUP4_unique)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h?
#include "unique.h"

using namespace std;

vector <int> PickUnique(int n)
{
    vector <int> a(n);
    for (int i=0;i<n;i++)   a[i]=1;
    int u=1;
    for (int i=1;i<n;i++)
    {
        int hi=UniqueCount(0,i);
        if (hi<=u)
            a[i]=0;
        u=hi;
    }

    u=1;
    for (int i=n-1;i>=0;i--)
    {
        int hi=UniqueCount(i,n-1);
        if (hi<=u)
            a[i]=0;
        u=hi;
    }
    return a;
}

컴파일 시 표준 에러 (stderr) 메시지

unique.cpp:1:25: error: missing terminating > character
    1 | #include <bits/stdc++.h?
      |                         ^
unique.cpp:1:10: fatal error: bits/stdc++.h?: No such file or directory
    1 | #include <bits/stdc++.h?
      |          ^
compilation terminated.