제출 #961092

#제출 시각아이디문제언어결과실행 시간메모리
961092The_Cryptic_TGA Plus B (IOI23_aplusb)C++17
컴파일 에러
0 ms0 KiB
vector<ll> smallest_sums(ll n, vector<ll> a, vector<ll> b)
    {
        multiset<ll> s;
        loop1(i, n)
        {
            loop(j, n / i)
            {
                s.insert(a[i - 1] + b[j]);
            }
        }
        auto it = s.begin();
        ll k = n;
        vector <ll> ans;
        while (k--)
        {
            ans.push_back(*it);
            it++;
        }
        return ans;
    }

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

aplusb.cpp:1:1: error: 'vector' does not name a type
    1 | vector<ll> smallest_sums(ll n, vector<ll> a, vector<ll> b)
      | ^~~~~~